Ejemplo n.º 1
0
 /**
  * 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();
 }
Ejemplo n.º 2
0
 /**
  * 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();
 }