diff options
| author | Peter Thienel <thienel@data-quest.de> | 2026-01-08 18:43:19 +0100 |
|---|---|---|
| committer | Peter Thienel <thienel@data-quest.de> | 2026-01-08 18:43:19 +0100 |
| commit | 9fa00a819475ded9cf21859f1f9aa446293d2add (patch) | |
| tree | 5a8caced5ecd1048bfb4538946775ba9f31cb61e /lib/classes/MvvPerm.php | |
| parent | 59ad17e3ff68384a719daa96bb9f5f3106fed061 (diff) | |
Fach, Fachbereich and views reworkedissue-4262
Diffstat (limited to 'lib/classes/MvvPerm.php')
| -rw-r--r-- | lib/classes/MvvPerm.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/lib/classes/MvvPerm.php b/lib/classes/MvvPerm.php index 693b7b7..d75a35d 100644 --- a/lib/classes/MvvPerm.php +++ b/lib/classes/MvvPerm.php @@ -638,9 +638,12 @@ class MvvPerm { } if (count($institutes)) { - $stmt = DBManager::get()->prepare('SELECT DISTINCT(Institut_id) ' - . 'FROM Institute WHERE Institut_id IN (:inst_ids) ' - . 'OR fakultaets_id IN (:inst_ids)'); + $stmt = DBManager::get()->prepare(' + SELECT DISTINCT(`Institut_id`) + FROM `Institute` + WHERE `Institut_id` IN (:inst_ids) + OR `fakultaets_id` IN (:inst_ids) + '); $stmt->execute(['inst_ids' => $institutes]); self::$user_role_institutes[$user_id] = $stmt->fetchAll(PDO::FETCH_COLUMN); } else { |
