Esempio n. 1
0
 /**
  * Validates the 'copy' action.
  */
 public function validateCopy()
 {
     WCF::getSession()->checkPermissions(array('admin.user.canAddGroup', 'admin.user.canEditGroup'));
     $this->readBoolean('copyACLOptions');
     $this->readBoolean('copyMembers');
     $this->readBoolean('copyUserGroupOptions');
     $this->groupEditor = $this->getSingleObject();
     if (!$this->groupEditor->isAccessible() || $this->groupEditor->groupType != UserGroup::OTHER) {
         throw new PermissionDeniedException();
     }
 }