diff options
| author | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-06 06:49:27 +0000 |
|---|---|---|
| committer | Jan-Hendrik Willms <tleilax+studip@gmail.com> | 2024-05-06 06:49:27 +0000 |
| commit | 21f741c44215044c162fc1f0044bcbc052004d2e (patch) | |
| tree | 1f44675d15e5ec445121bcf7bf6a1b972183ed2c /app | |
| parent | 9c060cedfa6017a38b79d3bc6771fea2084bf823 (diff) | |
fixes #4112
Closes #4112
Merge request studip/studip!2957
Diffstat (limited to 'app')
| -rw-r--r-- | app/controllers/accessibility/forms.php | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/app/controllers/accessibility/forms.php b/app/controllers/accessibility/forms.php index f4f9adf..476f2fe 100644 --- a/app/controllers/accessibility/forms.php +++ b/app/controllers/accessibility/forms.php @@ -3,6 +3,21 @@ class Accessibility_FormsController extends StudipController { protected $with_session = true; + public function before_filter(&$action, &$args) + { + parent::before_filter($action, $args); + + if ( + Config::get()->REPORT_BARRIER_MODE === 'off' + || ( + Config::get()->REPORT_BARRIER_MODE === 'logged-in' + && !User::findCurrent() + ) + ) { + throw new AccessDeniedException(); + } + } + public function report_barrier_action() { PageLayout::setTitle(_('Barriere melden')); |
