/**
  * @param string $attribute
  * @param PendingUserUpdateInterface $pendingUserUpdate
  * @param TokenInterface $token
  * @return bool
  */
 protected function voteOnAttribute($attribute, $pendingUserUpdate, TokenInterface $token)
 {
     // grant perms based on the user
     return parent::voteOnAttribute($attribute, $pendingUserUpdate->getUser(), $token);
 }
Example #2
0
 /**
  * @param string $attribute
  * @param PendingUserUpdateInterface $pendingUserUpdate
  * @param UserInterface|null $user
  * @return bool
  */
 protected function isGranted($attribute, $pendingUserUpdate, $user = null)
 {
     // grant perms based on the user
     return parent::isGranted($attribute, $pendingUserUpdate->getUser(), $user);
 }