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/search/stgtable.php | |
| parent | 7dc2d3e1266810b98758faeaf3bd4dcab04330ce (diff) | |
set allow_nobody the right way, fixes #6246
Closes #6246
Merge request studip/studip!4724
Diffstat (limited to 'app/controllers/search/stgtable.php')
| -rw-r--r-- | app/controllers/search/stgtable.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/controllers/search/stgtable.php b/app/controllers/search/stgtable.php index f652977..8159a54 100644 --- a/app/controllers/search/stgtable.php +++ b/app/controllers/search/stgtable.php @@ -18,11 +18,15 @@ require_once dirname(__FILE__) . '/studiengaenge.php'; class Search_StgtableController extends Search_StudiengaengeController { + public function __construct(Trails\Dispatcher $dispatcher) + { + $this->allow_nobody = Config::get()->getValue('COURSE_SEARCH_IS_VISIBLE_NOBODY'); + + parent::__construct($dispatcher); + } public function before_filter(&$action, &$args) { - $this->allow_nobody = Config::get()->COURSE_SEARCH_IS_VISIBLE_NOBODY; - MVVController::before_filter($action, $args); // set navigation |
