mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-29 15:24:50 +02:00
Fixed access to typeahead controllers.
This commit is contained in:
parent
5e06557cf0
commit
41450b8bd3
2 changed files with 103 additions and 1 deletions
|
@ -106,7 +106,7 @@ class AttachmentVoter extends ExtendedVoter
|
|||
{
|
||||
if (is_a($subject, Attachment::class, true)) {
|
||||
//These are the allowed attributes
|
||||
return in_array($attribute, ['view', 'edit', 'delete', 'create', 'show_private'], true);
|
||||
return in_array($attribute, ['read', 'view', 'edit', 'delete', 'create', 'show_private'], true);
|
||||
}
|
||||
|
||||
//Allow class name as subject
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue