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
|
||||
delete:
|
||||
label: "perm.delete"
|
||||
alsoSet: ['read', 'edit']
|
||||
alsoSet: ['read', 'edit_username', 'edit_infos']
|
||||
bit: 8
|
||||
edit_username:
|
||||
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
|
||||
set_password:
|
||||
label: "perm.users.set_password"
|
||||
alsoSet: 'set_read'
|
||||
alsoSet: 'read'
|
||||
bit: 14
|
||||
change_user_settings:
|
||||
label: "perm.users.change_user_settings"
|
||||
|
|
|
@ -116,7 +116,7 @@ class UserAdminForm extends AbstractType
|
|||
->add('permissions', PermissionsType::class, [
|
||||
'mapped' => false,
|
||||
'data' => $builder->getData(),
|
||||
//'user' => $builder->getData(),
|
||||
'disabled' => !$this->security->isGranted('edit_permissions', $entity)
|
||||
])
|
||||
;
|
||||
/*->add('comment', CKEditorType::class, ['required' => false,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue