Ejemplo n.º 1
0
 /**
  * Saves the member groups
  */
 private function SaveMemberGroups()
 {
     $selectedIDs = Request::PostArray('MemberGroup');
     if ($this->page->GetGuestsOnly()) {
         $selectedIDs = array();
     }
     $exIDs = Membergroup::GetKeyList(MembergroupUtil::PageMembergroups($this->page));
     $this->DeleteOldMemberGroups($selectedIDs);
     $this->SaveNewMemberGroups($selectedIDs, $exIDs);
 }
Ejemplo n.º 2
0
 /**
  * Checks a page for access rights
  * @param Page $page The page for the access check
  * @return GrantResult Returns the check result
  */
 private function GrantOnPage(Page $page)
 {
     $groups = MembergroupUtil::PageMembergroups($page);
     return $this->GrantByProperties($page->GetGuestsOnly(), $page->GetPublish(), $page->GetPublishFrom(), $page->GetPublishTo(), $groups);
 }