mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-20 17:15:51 +02:00
Fixed permission denied error, when accessing a user info page
This commit is contained in:
parent
ff2aafabbd
commit
fea8109789
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue