From f1b70468a8af1a1e331772da13d3f5b0276aa213 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Wed, 21 Jun 2017 18:49:51 +0200 Subject: [PATCH] Fixed issue in validation of 'forceSelection' --- .../system/label/object/AbstractLabelObjectHandler.class.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php index 5ffbb135cb..9fbbb4ad8b 100644 --- a/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php +++ b/wcfsetup/install/files/lib/system/label/object/AbstractLabelObjectHandler.class.php @@ -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; } -- 2.20.1