Allow import/export of users

This commit is contained in:
Jan Böhmer 2023-03-13 22:16:02 +01:00
parent 9ac8098f15
commit be5663c468
3 changed files with 19 additions and 1 deletions

View file

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