diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-11 14:44:51 +0100 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2026-02-11 14:44:51 +0100 |
| commit | ef49a6dd45fa5756ebe0c592a34711592109e957 (patch) | |
| tree | c5f6b891f855fae8bcb5f04f923980cce32bfb08 /app/controllers/shared | |
| parent | 7dc2d3e1266810b98758faeaf3bd4dcab04330ce (diff) | |
set allow_nobody the right way, fixes #6246
Closes #6246
Merge request studip/studip!4724
Diffstat (limited to 'app/controllers/shared')
| -rw-r--r-- | app/controllers/shared/download.php | 6 | ||||
| -rw-r--r-- | app/controllers/shared/modul.php | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/app/controllers/shared/download.php b/app/controllers/shared/download.php index 6e39998..1bb3920 100644 --- a/app/controllers/shared/download.php +++ b/app/controllers/shared/download.php @@ -1,11 +1,11 @@ <?php class Shared_DownloadController extends AuthenticatedController { - public function before_filter(&$action, &$args) + public function __construct(Trails\Dispatcher $dispatcher) { - $this->allow_nobody = Config::get()->COURSE_SEARCH_IS_VISIBLE_NOBODY; + $this->allow_nobody = Config::get()->getValue('COURSE_SEARCH_IS_VISIBLE_NOBODY'); - parent::before_filter($action, $args); + parent::__construct($dispatcher); } /** diff --git a/app/controllers/shared/modul.php b/app/controllers/shared/modul.php index ffcfdb7..abb1857 100644 --- a/app/controllers/shared/modul.php +++ b/app/controllers/shared/modul.php @@ -15,12 +15,11 @@ class Shared_ModulController extends AuthenticatedController { - - public function before_filter(&$action, &$args) + public function __construct(Trails\Dispatcher $dispatcher) { - $this->allow_nobody = Config::get()->COURSE_SEARCH_IS_VISIBLE_NOBODY; + $this->allow_nobody = Config::get()->getValue('COURSE_SEARCH_IS_VISIBLE_NOBODY'); - parent::before_filter($action, $args); + parent::__construct($dispatcher); } public function overview_action($modul_id, $semester_id = null) |
