Пример #1
0
 public static function mayOperateOnOwn($oUser, $mObject, $sOperation)
 {
     $bResult = parent::mayOperateOnOwn($oUser, $mObject, $sOperation);
     ///When changing the sort or the category, I have to have the rights to said category as well
     if ($bResult && ($mObject->isColumnModified(LinkPeer::SORT) || $mObject->isColumnModified(LinkPeer::LINK_CATEGORY_ID))) {
         return $mObject->getLinkCategory() === null || $mObject->getLinkCategory()->mayOperate('update', $oUser);
     }
     return $bResult;
 }
Пример #2
0
 public static function setRightsUser($oUser = false)
 {
     self::$RIGHTS_USER = $oUser;
 }
Пример #3
0
 /**
  * Clear the instance pool.
  *
  * @return     void
  */
 public static function clearInstancePool()
 {
     self::$instances = array();
 }