Fixed issue in validation of 'forceSelection'
authorMarcel Werk <burntime@woltlab.com>
Wed, 21 Jun 2017 16:49:51 +0000 (18:49 +0200)
committerMarcel Werk <burntime@woltlab.com>
Wed, 21 Jun 2017 16:49:51 +0000 (18:49 +0200)
wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php

index 5ffbb135cb1a2abbf8e0d1aa889001f737d790d3..9fbbb4ad8b9ff5a254bdfa6899ecab6fa31723f6 100644 (file)
@@ -116,7 +116,7 @@ abstract class AbstractLabelObjectHandler extends SingletonFactory implements IL
                foreach ($this->labelGroups as $labelGroup) {
                        if ($labelGroup->forceSelection && !in_array($labelGroup->groupID, $satisfiedGroups)) {
                                // check if group wasn't set, but is not accessible for this user anyway
-                               if (!$labelGroup->getPermission($optionID)) {
+                               if ($labelGroup->hasPermissions() && !$labelGroup->getPermission($optionID)) {
                                        continue;
                                }