From 39810d1e94b1eeb7959984c8b8cf430590133553 Mon Sep 17 00:00:00 2001 From: Thomas Hackl Date: Mon, 23 Mar 2026 15:01:15 +0100 Subject: check for local permission --- lib/classes/Context.php | 2 ++ 1 file changed, 2 insertions(+) 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(); } } } -- cgit v1.0