Show the permissions a user have on the user info page.

This commit is contained in:
Jan Böhmer 2019-09-13 19:38:22 +02:00
parent 1f005b25f7
commit a078eef649
8 changed files with 171 additions and 73 deletions

View file

@ -78,7 +78,9 @@ class UserVoter extends ExtendedVoter
}
}
//Else just check users permission:
return $this->resolver->inherit($user, 'users', $attribute) ?? false;
if ($this->resolver->isValidOperation('users', $attribute)) {
return $this->resolver->inherit($user, 'users', $attribute) ?? false;
}
}
return false;