Skip to content
Snippets Groups Projects
Commit 52fed4ca authored by Jared Hancock's avatar Jared Hancock
Browse files

auth: Properly filter SSO backends for staff

parent d8949ece
No related branches found
No related tags found
No related merge requests found
......@@ -133,7 +133,7 @@ class AuthenticationBackend {
$sql = 'SELECT backend FROM '.STAFF_TABLE
.' WHERE staff_id='.db_input($staff->getId());
$backend = db_result(db_query($sql));
return !$backend || strcasecmp($bk, $backend) === 0;
return !$backend || strcasecmp($bk::$id, $backend) === 0;
}
function _getAllowedBackends($username) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment