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; }
public static function setRightsUser($oUser = false) { self::$RIGHTS_USER = $oUser; }
/** * Clear the instance pool. * * @return void */ public static function clearInstancePool() { self::$instances = array(); }