Fixed some exception about non existing part_attachments permission

This commit is contained in:
Jan Böhmer 2022-11-02 23:20:30 +01:00
parent 3e85fc4d42
commit 676235a2d3
3 changed files with 6 additions and 4 deletions

View file

@ -106,7 +106,7 @@ class AttachmentFormType extends AbstractType
'required' => false,
'label' => 'attachment.edit.secure_file',
'mapped' => false,
'disabled' => !$this->security->isGranted('@parts_attachments.show_private'),
'disabled' => !$this->security->isGranted('@attachments.show_private'),
'help' => 'attachment.edit.secure_file.help',
]);