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; }