diff options
author | Simon Rettberg | 2016-10-19 10:46:20 +0200 |
---|---|---|
committer | Simon Rettberg | 2016-10-19 10:46:20 +0200 |
commit | db0225db8ff4993e4c91024a42b002ba3c813564 (patch) | |
tree | a1403db34ea79112f9ce5af3c376fc1a699e108c /inc | |
parent | Fix session handling, support staff-affiliation as being detected as tutor (diff) | |
download | bwlp-webadmin-db0225db8ff4993e4c91024a42b002ba3c813564.tar.gz bwlp-webadmin-db0225db8ff4993e4c91024a42b002ba3c813564.tar.xz bwlp-webadmin-db0225db8ff4993e4c91024a42b002ba3c813564.zip |
Handle missing meta data from IdP when logging in via api
Diffstat (limited to 'inc')
-rw-r--r-- | inc/user.inc.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php index 16ec77d..70a6cdb 100644 --- a/inc/user.inc.php +++ b/inc/user.inc.php @@ -200,7 +200,8 @@ class User ); // Figure out whether the user should be considered a tutor if (isset($_SERVER['affiliation']) && (strpos(";{$_SERVER['affiliation']}", ';employee@') !== false - || strpos(";{$_SERVER['affiliation']}", ';staff@') !== false)) + || strpos(";{$_SERVER['affiliation']}", ';staff@') !== false + || strpos(";{$_SERVER['affiliation']}", ';faculty@') !== false)) self::$user['role'] = 'TUTOR'; elseif (isset($_SERVER['entitlement']) && strpos(";{$_SERVER['entitlement']};", ';http://bwidm.de/entitlement/bwLehrpool;') !== false) self::$user['role'] = 'TUTOR'; |