Removes package dependency handling in UserGroupOptionForm
authorMatthias Schmidt <gravatronics@live.com>
Mon, 31 Dec 2012 14:11:56 +0000 (15:11 +0100)
committerMatthias Schmidt <gravatronics@live.com>
Mon, 31 Dec 2012 14:11:56 +0000 (15:11 +0100)
wcfsetup/install/files/lib/acp/form/UserGroupOptionForm.class.php

index c246c94a20f8267541a38fd403d34124b8c022c7..56416c776d51ba6c0fe626bc7ff46fe7a92bfcfa 100644 (file)
@@ -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);