/** * Saves the site rights */ function Save() { $this->pageRights->Save(); if (!$this->rights) { $this->rights = new BackendSiteRights(); } $this->rights->SetEdit($this->Value('Edit')); $this->rights->SetRemove($this->Value('Remove')); $this->rights->SetPageRights($this->pageRights->Rights()); $this->rights->Save(); }
/** * True if any of the site rights is true * @param BackendSiteRights $siteRights * @return boolean Returns true if any access action is allowed */ private function HasAnySiteRight(BackendSiteRights $siteRights) { return $siteRights->GetEdit() || $siteRights->GetRemove(); }