From: Marcel Werk Date: Wed, 21 Jun 2017 16:49:51 +0000 (+0200) Subject: Fixed issue in validation of 'forceSelection' X-Git-Tag: 3.0.6~8 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=f1b70468a8af1a1e331772da13d3f5b0276aa213;p=GitHub%2FWoltLab%2FWCF.git Fixed issue in validation of 'forceSelection' --- 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; }