Commit 2bbd1a1a authored by gj4210's avatar gj4210 👽
Browse files

ADD: Role Management

parent 4061b495
Pipeline #113339 passed with stages
in 8 minutes and 26 seconds
......@@ -5,11 +5,12 @@ export default {
const ta = [
{ name: 'cntl.mgr.list', old: { is_own: true } }, // Accounts
{ name: 'cntl.wapi_auth.list', join: { 0: 'api_fkey_cntl_wapi_auth_mgr' } }, // Tokens
{ name: 'cntl.mgr2role.list', join: { 0: 'api_fkey_cntl_wapi_auth_mgr' } } // Roles
{ name: 'cntl.mgr2role.list', join: { 0: 'api_fkey_cntl_wapi_auth_mgr' } }, // Mgr2Role
{ name: 'cntl.role.list', old: {is_directly_assigned: true, is_role: true}} // Roles
]
return TransactionService.execute(config, ta)
},
update (config, { login_name_old, login_name_new, description_new, allow_data_manipulation_new, role_fq_name_list_new }) {
update (config, { login_name_old, login_name_new, description_new, allow_data_manipulation_new, roles_to_add, roles_to_remove }) {
const ta = [
{
name: 'cntl.mgr.update',
......@@ -22,8 +23,8 @@ export default {
},
{
name: 'cntl.mgr2role.bulk_update',
new: { role_fq_name_list: role_fq_name_list_new },
old: { mgr_login_name: login_name_new }
new: { role_fq_name_list: roles_to_add },
old: { role_fq_name_list: roles_to_remove, mgr_login_name: login_name_new }
}
]
return TransactionService.execute(config, ta)
......
......@@ -282,5 +282,5 @@ table.collapse.in {
}
.popover-wide {
max-width: 100%;
}
\ No newline at end of file
max-width: 100% !important;
}
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment