tp: adapt to new ACL interface (wip)

This commit is contained in:
2021-09-28 14:06:52 +02:00
parent 84223316c4
commit c791c48248
4 changed files with 57 additions and 16 deletions

View File

@@ -56,6 +56,8 @@ class ThirdPartyVoter extends AbstractChillVoter implements ProvideRoleHierarchy
*/
protected function voteOnAttribute($attribute, $subject, TokenInterface $token)
{
return true;
$user = $token->getUser();
if (!$user instanceof User) {