aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/classes/Context.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/classes/Context.php b/lib/classes/Context.php
index 562d612..b6c9369 100644
--- a/lib/classes/Context.php
+++ b/lib/classes/Context.php
@@ -244,6 +244,8 @@ class Context
);
header('Location: ' . $url);
die;
+ } else if (!$GLOBALS['perm']->get_studip_perm($context->id)) {
+ throw new AccessDeniedException();
}
}
}