/** * @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); }
/** * @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); }