Fixed access to typeahead controllers.

This commit is contained in:
Jan Böhmer 2022-11-09 23:33:50 +01:00
parent 5e06557cf0
commit 41450b8bd3
2 changed files with 103 additions and 1 deletions

View file

@ -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