Exemple #1
0
 /**
  * AuthZ
  * 
  * @return boolean
  * @access public
  * @since 3/14/08
  */
 protected function canChangeSlotStatus(Slot $slot)
 {
     if (!$slot->siteExists()) {
         return $slot->isUserOwner();
     }
     // get siteRoot node and check that
     $idMgr = Services::getService('Id');
     $azMgr = Services::getService('AuthZ');
     // Since view AZs cascade up, just check at the node.
     return $azMgr->isUserAuthorized($idMgr->getId('edu.middlebury.authorization.modify'), $slot->getSiteId());
 }