diff options
author | msquare <msquare@notrademark.de> | 2016-10-07 17:22:48 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2016-10-07 17:22:48 +0200 |
commit | c48335e702361eec3818a6b1021d443fee9037f5 (patch) | |
tree | ce65c5ec1f7f86e5b10c31492c3551fe6a6ad26e /includes/sys_menu.php | |
parent | 6d97aa2d273464e3cb6703a0527793c52583d4cd (diff) |
improve shift rendering
Diffstat (limited to 'includes/sys_menu.php')
-rw-r--r-- | includes/sys_menu.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/sys_menu.php b/includes/sys_menu.php index a5971ace..9d70cf10 100644 --- a/includes/sys_menu.php +++ b/includes/sys_menu.php @@ -169,6 +169,10 @@ function make_navigation() { function make_room_navigation($menu) { global $privileges; + if (! in_array('view_rooms', $privileges)) { + return $menu; + } + $rooms = Rooms(); $room_menu = []; if (in_array('admin_rooms', $privileges)) { |