mirror of
https://github.com/zitadel/zitadel.git
synced 2025-12-14 09:32:43 +00:00
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:
@@ -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(() => {
|
||||
|
||||
Reference in New Issue
Block a user