Skip to content

Commit

Permalink
refs #1103, disable video page in content area for admins for now
Browse files Browse the repository at this point in the history
  • Loading branch information
tgloeggl committed Dec 11, 2024
1 parent 8812fe0 commit f0d405f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/VersionHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit f0d405f

Please sign in to comment.