mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-13 11:54:32 +02:00
Allow import/export of users
This commit is contained in:
parent
9ac8098f15
commit
be5663c468
3 changed files with 19 additions and 1 deletions
|
@ -50,7 +50,7 @@ class ImportType extends AbstractType
|
|||
|
||||
//Disable import if user is not allowed to create elements.
|
||||
$entity = new $data['entity_class']();
|
||||
$perm_name = 'create';
|
||||
$perm_name = 'import';
|
||||
$disabled = !$this->security->isGranted($perm_name, $entity);
|
||||
|
||||
$builder
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue