Beispiel #1
0
 /**
  * @param string $attribute
  * @param IlmSessionInterface $ilmFacet
  * @param TokenInterface $token
  * @return bool
  */
 protected function voteOnAttribute($attribute, $ilmFacet, TokenInterface $token)
 {
     // grant perms based on the session
     $session = $ilmFacet->getSession();
     if (!$session) {
         return false;
     }
     return parent::voteOnAttribute($attribute, $session, $token);
 }
Beispiel #2
0
 /**
  * @param string $attribute
  * @param IlmSessionInterface $ilmFacet
  * @param UserInterface $user
  * @return bool
  */
 protected function isGranted($attribute, $ilmFacet, $user = null)
 {
     // grant perms based on the session
     return parent::isGranted($attribute, $ilmFacet->getSession(), $user);
 }