From: Marcel Werk Date: Thu, 30 Jun 2016 14:26:40 +0000 (+0200) Subject: Fixed permission validation X-Git-Tag: 3.0.0_Beta_1~1303 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6aba32bf5ad8419ef5abbe1f66d3a31288ad4e5b;p=GitHub%2FWoltLab%2FWCF.git Fixed permission validation --- 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; }