fix(console): authz creation from user, add org settings keyboardshortcut (#4135)

* fix(console): create user grant from user

* add org settings to keyboard shortcuts

Co-authored-by: Livio Spring <livio.a@gmail.com>
This commit is contained in:
Max Peintner
2022-08-08 14:18:55 +02:00
committed by GitHub
parent 8f999e5806
commit 50acb22399
7 changed files with 50 additions and 26 deletions

View File

@@ -141,13 +141,20 @@ export class UserGrantCreateComponent implements OnDestroy {
break;
case UserGrantContext.USER:
let grantId: string = '';
let grantedProjectId: string = '';
if (this.grantedProject?.grantId) {
grantId = this.grantedProject.grantId;
grantedProjectId = this.grantedProject.projectId;
}
const promu = this.userIds.map((id) =>
this.userService.addUserGrant(id, this.rolesList, (this.project as Project.AsObject).id, grantId),
this.userService.addUserGrant(
id,
this.rolesList,
this.project?.id ? this.project.id : grantedProjectId ? grantedProjectId : '',
grantId,
),
);
Promise.all(promu)
.then(() => {