mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2026-05-10 15:12:12 +00:00
Check for good measure again, that a user is able to edit an entity in an admin form
issue #1283
This commit is contained in:
parent
32a666f6c3
commit
2137eecddf
2 changed files with 3 additions and 0 deletions
|
|
@ -121,6 +121,7 @@ class BaseEntityAdminForm extends AbstractType
|
|||
'label' => 'entity.edit.alternative_names.label',
|
||||
'help' => 'entity.edit.alternative_names.help',
|
||||
'empty_data' => null,
|
||||
'disabled' => !$this->security->isGranted($is_new ? 'create' : 'edit', $entity),
|
||||
'attr' => [
|
||||
'class' => 'tagsinput',
|
||||
'data-controller' => 'elements--tagsinput',
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue