/** * Saves the container rights */ function Save() { $this->contentRights->Save(); if (!$this->rights) { $this->rights = new BackendContainerRights(); } $this->rights->SetEdit($this->Value('Edit')); $this->rights->SetRemove($this->Value('Remove')); $this->rights->SetContentRights($this->contentRights->Rights()); $this->rights->Save(); }
/** * True if any of the container rights is true * @param BackendContainerRights $containerRights * @return boolean Returns true if any access action is allowed */ private function HasAnyContainerRight(BackendContainerRights $containerRights) { return $containerRights->GetEdit() || $containerRights->GetRemove(); }