forked from mirror/Part-DB.Part-DB-server
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
|
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
|
public function supportsType(string $subjectType): bool
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue