diff options
| author | Moritz Strohm <strohm@data-quest.de> | 2022-09-02 08:24:41 +0000 |
|---|---|---|
| committer | David Siegfried <david.siegfried@uni-vechta.de> | 2022-09-02 08:24:41 +0000 |
| commit | 896d17c79a06bf111cfbb7c0346662e50b8cfb96 (patch) | |
| tree | 67d9646b511ac43146209ecb9f7d8d9d0f353e50 /app/controllers/resources/export.php | |
| parent | 2288b250879e04a4c4ac900cb1ee043927a2ccd2 (diff) | |
allow access to resources/export for global resource users, closes #201
Closes #201
Merge request studip/studip!944
Diffstat (limited to 'app/controllers/resources/export.php')
| -rw-r--r-- | app/controllers/resources/export.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/resources/export.php b/app/controllers/resources/export.php index c838f9f..f64264a 100644 --- a/app/controllers/resources/export.php +++ b/app/controllers/resources/export.php @@ -58,7 +58,7 @@ class Resources_ExportController extends AuthenticatedController if (Navigation::hasItem('/resources/export/select_booking_sources')) { Navigation::activateItem('/resources/export/select_booking_sources'); } - if (!ResourceManager::userHasGlobalPermission(User::findCurrent(), 'admin')) { + if (!ResourceManager::userHasGlobalPermission(User::findCurrent())) { throw new AccessDeniedException(); } |
