示例#1
0
 /**
  * @param string $attribute
  * @param SessionDescriptionInterface $description
  * @param UserInterface|null $user
  * @return bool
  */
 protected function isGranted($attribute, $description, $user = null)
 {
     // grant perms based on the owning session
     return parent::isGranted($attribute, $description->getSession(), $user);
 }
示例#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);
 }