You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dlab.apache.org by dg...@apache.org on 2020/04/27 14:53:04 UTC

[incubator-dlab] branch develop updated: [DLAB-1768]: Fixed administration role could not be edited for already existing group (#709)

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 <42...@users.noreply.github.com>
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: commits-unsubscribe@dlab.apache.org
For additional commands, e-mail: commits-help@dlab.apache.org