From: Matthias Schmidt Date: Mon, 31 Dec 2012 14:11:56 +0000 (+0100) Subject: Removes package dependency handling in UserGroupOptionForm X-Git-Tag: 2.0.0_Beta_1~626^2~2^2 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=cde6991956b27d8de3022b4b2439873b76666856;p=GitHub%2FWoltLab%2FWCF.git Removes package dependency handling in UserGroupOptionForm --- diff --git a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php index c246c94a20..56416c776d 100644 --- a/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php +++ b/wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php @@ -107,12 +107,9 @@ class UserGroupOptionForm extends AbstractForm { } // verify options and permissions for current option - throw new SystemException("UserGroupOptionForm::readParameters()"); - $dependencies = PackageDependencyHandler::getInstance()->getDependencies(); - if ($this->verifyPermissions($this->userGroupOption) && in_array($this->userGroupOption->packageID, $dependencies)) { + if ($this->verifyPermissions($this->userGroupOption)) { // read all categories $categoryList = new UserGroupOptionCategoryList(); - $categoryList->getConditionBuilder()->add("packageID IN (?)", array($dependencies)); $categoryList->sqlLimit = 0; $categoryList->readObjects(); @@ -299,13 +296,13 @@ class UserGroupOptionForm extends AbstractForm { foreach ($this->groups as $groupID => $group) { if ($group->groupType == UserGroup::EVERYONE) { $this->canEditEveryone = true; - + // remove 'Everyone' from groups $this->groupEveryone = $group; unset($this->groups[$groupID]); } } - + // add 'Everyone' group if (!$this->canEditEveryone) { $this->groupEveryone = UserGroup::getGroupByType(UserGroup::EVERYONE);