continue;
}
- if ($group->getPermission($optionID)) {
+ if (!$group->hasPermissions() || $group->getPermission($optionID)) {
$isValid = true;
}
}
// validate permissions
if ($validatePermissions) {
- if (!$this->labelGroups['groups'][$groupID]->getPermission($optionID)) {
+ if ($this->labelGroups['groups'][$groupID]->hasPermissions() && !$this->labelGroups['groups'][$groupID]->getPermission($optionID)) {
continue;
}
}