mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-12-26 12:59:31 +00:00
Added basic logic for impersonation
This commit is contained in:
parent
15e072a2ff
commit
d20153c569
7 changed files with 163 additions and 27 deletions
|
|
@ -21,6 +21,9 @@ security:
|
|||
user_checker: App\Security\UserChecker
|
||||
entry_point: form_login
|
||||
|
||||
# Enable user impersonation
|
||||
switch_user: { role: CAN_SWITCH_USER }
|
||||
|
||||
two_factor:
|
||||
auth_form_path: 2fa_login
|
||||
check_path: 2fa_login_check
|
||||
|
|
|
|||
|
|
@ -190,6 +190,9 @@ perms: # Here comes a list with all Permission names (they have a perm_[name] co
|
|||
set_password:
|
||||
label: "perm.users.set_password"
|
||||
alsoSet: 'read'
|
||||
impersonate:
|
||||
label: "perm.users.impersonate"
|
||||
alsoSet: ['set_password']
|
||||
change_user_settings:
|
||||
label: "perm.users.change_user_settings"
|
||||
show_history:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue