Skip to content

Commit a0e8dc0

Browse files
committed
MSFTMPP-782: Fix for logged-in guests
1 parent c0b8969 commit a0e8dc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auth/oidc/classes/loginflow/authcode.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -106,7 +106,7 @@ public function handleredirect() {
106106
// Response from OP.
107107
$this->handleauthresponse($requestparams);
108108
} else {
109-
if (isloggedin() && empty($justauth) && empty($promptaconsent)) {
109+
if (isloggedin() && !isguestuser() && empty($justauth) && empty($promptaconsent)) {
110110
if (isset($SESSION->wantsurl) and (strpos($SESSION->wantsurl, $CFG->wwwroot) === 0)) {
111111
$urltogo = $SESSION->wantsurl;
112112
unset($SESSION->wantsurl);

0 commit comments

Comments
 (0)