This is an automated email from the ASF dual-hosted git repository.

dgnatyshyn pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git


The following commit(s) were added to refs/heads/develop by this push:
     new a32fb62  [DLAB-1768]: Fixed administration role could not be edited 
for already existing group (#709)
a32fb62 is described below

commit a32fb62417b05be02c6c935cdf06d40302d68ffe
Author: Dmytro Gnatyshyn <[email protected]>
AuthorDate: Mon Apr 27 17:52:55 2020 +0300

    [DLAB-1768]: Fixed administration role could not be edited for already 
existing group (#709)
---
 .../resources/webapp/src/app/administration/roles/roles.component.ts | 5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

diff --git 
a/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
 
b/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
index 2b1e26b..c3fa1a6 100644
--- 
a/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
+++ 
b/services/self-service/src/main/resources/webapp/src/app/administration/roles/roles.component.ts
@@ -138,10 +138,7 @@ export class RolesComponent implements OnInit {
           item.selected_roles = [...currGroupSource.selected_roles];
           item.roles = [...currGroupSource.roles];
         } else {
-          const isSuperAdminGroup = this.startedGroups.filter(v => v.group === 
item.group)[0].roles.filter(role => role.description === 'Allow to execute 
administration operation').length;
-          const selectedRoles = isSuperAdminGroup ?
-            [...item.selected_roles.map(v => v.role), 'Allow to execute 
administration operation'] :
-            item.selected_roles.map(v => v.role);
+          const selectedRoles = item.selected_roles.map(v => v.role);
           this.manageRolesGroups({
             action, type, value: {
               name: item.group,


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to