From f0d405f891129c80e54f96addb44fea35b75e7f8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Till=20Gl=C3=B6ggler?= Date: Wed, 11 Dec 2024 16:43:15 +0100 Subject: [PATCH] refs #1103, disable video page in content area for admins for now --- lib/VersionHelper.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/VersionHelper.php b/lib/VersionHelper.php index 40911215..254f281c 100644 --- a/lib/VersionHelper.php +++ b/lib/VersionHelper.php @@ -104,7 +104,9 @@ class VersionHelper50 implements VersionHelperInterface { function addMainNavigation(\Navigation $navigation) { - if (\Navigation::hasItem('/contents')) { + global $user; + + if (\Navigation::hasItem('/contents') && $user->perms != 'admin') { \Navigation::addItem('/contents/opencast', $navigation); } }