aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/evaluation/archive.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/evaluation/archive.php')
-rw-r--r--app/controllers/evaluation/archive.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/controllers/evaluation/archive.php b/app/controllers/evaluation/archive.php
index b953e53..f659fe8 100644
--- a/app/controllers/evaluation/archive.php
+++ b/app/controllers/evaluation/archive.php
@@ -1,6 +1,16 @@
<?php
class Evaluation_ArchiveController 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/archive');