Fix ViewableLabelGroup::hasPermissions()
authorMatthias Schmidt <gravatronics@live.com>
Tue, 16 Aug 2016 18:49:45 +0000 (20:49 +0200)
committerMatthias Schmidt <gravatronics@live.com>
Tue, 16 Aug 2016 18:49:48 +0000 (20:49 +0200)
wcfsetup/install/files/lib/data/label/group/ViewableLabelGroup.class.php

index 354560143d179c3f3057cca219c6ea43857034fd..250d71c477c589258658265a33feac58bb49f607 100644 (file)
@@ -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']);
        }
 }