From 6aba32bf5ad8419ef5abbe1f66d3a31288ad4e5b Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Thu, 30 Jun 2016 16:26:40 +0200 Subject: [PATCH] Fixed permission validation --- wcfsetup/install/files/acp/templates/boxList.tpl | 6 +++--- wcfsetup/install/files/acp/templates/mediaList.tpl | 4 ++-- wcfsetup/install/files/acp/templates/menuList.tpl | 8 ++++---- .../lib/system/box/StaffOnlineListBoxController.class.php | 2 +- .../lib/system/box/UserOnlineListBoxController.class.php | 2 +- 5 files changed, 11 insertions(+), 11 deletions(-) diff --git a/wcfsetup/install/files/acp/templates/boxList.tpl b/wcfsetup/install/files/acp/templates/boxList.tpl index 6fcdf39076..34fd13be3b 100644 --- a/wcfsetup/install/files/acp/templates/boxList.tpl +++ b/wcfsetup/install/files/acp/templates/boxList.tpl @@ -120,11 +120,11 @@ {foreach from=$objects item=box} - + {if $box->canDelete()} - + {else} - + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/mediaList.tpl b/wcfsetup/install/files/acp/templates/mediaList.tpl index 54e1388d89..739b16c762 100644 --- a/wcfsetup/install/files/acp/templates/mediaList.tpl +++ b/wcfsetup/install/files/acp/templates/mediaList.tpl @@ -136,8 +136,8 @@ - - + + {event name='rowButtons'} diff --git a/wcfsetup/install/files/acp/templates/menuList.tpl b/wcfsetup/install/files/acp/templates/menuList.tpl index 9789424325..fea4ebb9bf 100644 --- a/wcfsetup/install/files/acp/templates/menuList.tpl +++ b/wcfsetup/install/files/acp/templates/menuList.tpl @@ -46,12 +46,12 @@ {foreach from=$objects item=menu} - - + + {if $menu->canDelete()} - + {else} - + {/if} {event name='rowButtons'} diff --git a/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php b/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php index 8edd5dfee9..cdbcc94dc4 100644 --- a/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/StaffOnlineListBoxController.class.php @@ -39,7 +39,7 @@ class StaffOnlineListBoxController extends AbstractDatabaseObjectListBoxControll * @inheritDoc */ public function hasContent() { - if (!MODULE_USERS_ONLINE || WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { + if (!MODULE_USERS_ONLINE || !WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { return false; } diff --git a/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php b/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php index f996d858d0..b4bd877396 100644 --- a/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php +++ b/wcfsetup/install/files/lib/system/box/UserOnlineListBoxController.class.php @@ -54,7 +54,7 @@ class UserOnlineListBoxController extends AbstractDatabaseObjectListBoxControlle * @inheritDoc */ public function hasContent() { - if (!MODULE_USERS_ONLINE || WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { + if (!MODULE_USERS_ONLINE || !WCF::getSession()->getPermission('user.profile.canViewUsersOnlineList')) { return false; } -- 2.20.1