From: Matthias Schmidt Date: Tue, 16 Aug 2016 18:49:45 +0000 (+0200) Subject: Fix ViewableLabelGroup::hasPermissions() X-Git-Tag: 3.0.0_Beta_1~722 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=77ea994c0e2de8d8e72f92439d7eaa796612baa8;p=GitHub%2FWoltLab%2FWCF.git Fix ViewableLabelGroup::hasPermissions() --- diff --git a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php index 354560143d..250d71c477 100644 --- a/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php +++ b/wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php @@ -232,11 +232,11 @@ class ViewableLabelGroup extends DatabaseObjectDecorator implements \Countable, } /** - * Returns false if this label group has no permissions at all. + * Returns true if any permissions have been set for this label group. * - * @return boolean + * @return boolean */ public function hasPermissions() { - return (empty($this->permissions['group']) && empty($this->permissions['user'])); + return !empty($this->permissions['group']) || !empty($this->permissions['user']); } }