Commit 635ab613 authored by Piers Harding's avatar Piers Harding
Browse files

auth/saml: fix problem with distinction of users between authinstances.

parent 82b9ba15
...@@ -134,11 +134,8 @@ class AuthSaml extends Auth { ...@@ -134,11 +134,8 @@ class AuthSaml extends Auth {
throw new AccessDeniedException(); throw new AccessDeniedException();
} }
$user->find_by_username($remoteuser);
}
else {
$user->find_by_instanceid_username($this->instanceid, $remoteuser, true);
} }
$user->find_by_username($remoteuser);
if ($user->get('suspendedcusr')) { if ($user->get('suspendedcusr')) {
die_info(get_string('accountsuspended', 'mahara', strftime(get_string('strftimedaydate'), $user->get('suspendedctime')), $user->get('suspendedreason'))); die_info(get_string('accountsuspended', 'mahara', strftime(get_string('strftimedaydate'), $user->get('suspendedctime')), $user->get('suspendedreason')));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment