This is an automated email from the ASF dual-hosted git repository. dgnatyshyn pushed a commit to branch DLAB-1768 in repository https://gitbox.apache.org/repos/asf/incubator-dlab.git
commit fa80da180fdce07a4f9d998d1d2d980e7fc1a774 Author: Dmytro Gnatyshyn <[email protected]> AuthorDate: Mon Apr 27 17:50:28 2020 +0300 [DLAB-1768]: Fixed administration role could not be edited for already existing group --- .../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]
