aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/evaluation/pool.php
diff options
context:
space:
mode:
authorFinn Schneider <schneider@data-quest.de>2026-02-23 13:11:13 +0100
committerFinn Schneider <schneider@data-quest.de>2026-03-13 17:25:01 +0000
commit2bff2fd977ec10b3dd391002de22486716b5c994 (patch)
treeb0c513ced9b3d924d87f4144a26cf8f41725b8d6 /app/controllers/evaluation/pool.php
parente8d9c90a35e7b3c304f444f4277677f3ad267912 (diff)
before_filter
Diffstat (limited to 'app/controllers/evaluation/pool.php')
-rw-r--r--app/controllers/evaluation/pool.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/evaluation/pool.php b/app/controllers/evaluation/pool.php
index 5e01fd6..6b25e32 100644
--- a/app/controllers/evaluation/pool.php
+++ b/app/controllers/evaluation/pool.php
@@ -1,6 +1,16 @@
<?php
class Evaluation_PoolController extends AuthenticatedController
{
+ public function before_filter(&$action, &$args)
+ {
+ parent::before_filter($action, $args);
+ $current_user = User::findCurrent();
+ if (!($current_user->hasPermissionLevel('root') ||
+ $current_user->hasRole('Zentraler Evaluationsadmin'))) {
+ throw new AccessDeniedException();
+ }
+ }
+
public function index_action()
{
Navigation::activateItem('/evaluation/pool');