mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-06-21 01:25:55 +02:00
Check permission when changing permissions for users.
This commit is contained in:
parent
c2c9f3a938
commit
2c866186b0
2 changed files with 3 additions and 3 deletions
|
@ -239,7 +239,7 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
||||||
bit: 4
|
bit: 4
|
||||||
delete:
|
delete:
|
||||||
label: "perm.delete"
|
label: "perm.delete"
|
||||||
alsoSet: ['read', 'edit']
|
alsoSet: ['read', 'edit_username', 'edit_infos']
|
||||||
bit: 8
|
bit: 8
|
||||||
edit_username:
|
edit_username:
|
||||||
label: "perm.users.edit_user_name"
|
label: "perm.users.edit_user_name"
|
||||||
|
@ -259,7 +259,7 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
||||||
bit: 12
|
bit: 12
|
||||||
set_password:
|
set_password:
|
||||||
label: "perm.users.set_password"
|
label: "perm.users.set_password"
|
||||||
alsoSet: 'set_read'
|
alsoSet: 'read'
|
||||||
bit: 14
|
bit: 14
|
||||||
change_user_settings:
|
change_user_settings:
|
||||||
label: "perm.users.change_user_settings"
|
label: "perm.users.change_user_settings"
|
||||||
|
|
|
@ -116,7 +116,7 @@ class UserAdminForm extends AbstractType
|
||||||
->add('permissions', PermissionsType::class, [
|
->add('permissions', PermissionsType::class, [
|
||||||
'mapped' => false,
|
'mapped' => false,
|
||||||
'data' => $builder->getData(),
|
'data' => $builder->getData(),
|
||||||
//'user' => $builder->getData(),
|
'disabled' => !$this->security->isGranted('edit_permissions', $entity)
|
||||||
])
|
])
|
||||||
;
|
;
|
||||||
/*->add('comment', CKEditorType::class, ['required' => false,
|
/*->add('comment', CKEditorType::class, ['required' => false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue