Skip to content

Commit

Permalink
MSFTMPP-782: Fix for logged-in guests
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmcq committed Oct 10, 2019
1 parent 5f5fe2b commit 708502c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/loginflow/authcode.php
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ public function handleredirect() {
// Response from OP.
$this->handleauthresponse($requestparams);
} else {
if (isloggedin() && empty($justauth) && empty($promptaconsent)) {
if (isloggedin() && !isguestuser() && empty($justauth) && empty($promptaconsent)) {
if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) === 0)) {
$urltogo = $SESSION->wantsurl;
unset($SESSION->wantsurl);
Expand Down

0 comments on commit 708502c

Please sign in to comment.