/**
  * Saves the layout rights
  */
 function Save()
 {
     $this->contentRights->Save();
     if (!$this->rights) {
         $this->rights = new BackendLayoutRights();
     }
     $this->rights->SetEdit($this->Value('Edit'));
     $this->rights->SetRemove($this->Value('Remove'));
     $this->rights->SetContentRights($this->contentRights->Rights());
     $this->rights->Save();
 }
Exemple #2
0
 /**
  * True if any of the layout rights is true
  * @param BackendLayoutRights $layoutRights
  * @return boolean Returns true if any access action is allowed
  */
 private function HasAnyLayoutRight(BackendLayoutRights $layoutRights)
 {
     return $layoutRights->GetEdit() || $layoutRights->GetRemove();
 }