From cde6991956b27d8de3022b4b2439873b76666856 Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Mon, 31 Dec 2012 15:11:56 +0100 Subject: [PATCH] Removes package dependency handling in UserGroupOptionForm --- .../files/lib/acp/form/UserGroupOptionForm.class.php | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) 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); -- 2.20.1