Fixed permission denied error, when accessing a user info page

This commit is contained in:
Jan Böhmer 2024-02-06 22:21:43 +01:00
parent ff2aafabbd
commit fea8109789

View file

@ -62,7 +62,7 @@ final class UserVoter extends Voter
public function supportsAttribute(string $attribute): bool
{
return $this->helper->isValidOperation('users', $attribute) || $this->helper->isValidOperation('self', $attribute);
return $this->helper->isValidOperation('users', $attribute) || $this->helper->isValidOperation('self', $attribute) || $attribute === 'info';
}
public function supportsType(string $subjectType): bool