Skip to content

Commit e52a73f

Browse files
Johaney-sxkureck
authored andcommitted
feat(core): allow observer roles to manage group unions
* extended privileges to manage group unions allowing observer roles on operand groups
1 parent a1f7fac commit e52a73f

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

apps/admin-gui/src/app/shared/components/dialogs/create-relation-dialog/create-relation-dialog.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ export class CreateRelationDialogComponent implements OnInit {
8787
private setGroupsToDisable(): void {
8888
for (const group of this.groups) {
8989
if (
90-
!this.guiAuthResolver.isAuthorized('createGroupUnion_Group_Group_policy', [
90+
!this.guiAuthResolver.isAuthorized('result-createGroupUnion_Group_Group_policy', [
9191
this.data.group,
92-
group,
93-
])
92+
]) ||
93+
!this.guiAuthResolver.isAuthorized('operand-createGroupUnion_Group_Group_policy', [group])
9494
) {
9595
this.groupsToDisable.add(group.id);
9696
}

libs/perun/components/src/lib/groups-list/groups-list.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -332,10 +332,10 @@ export class GroupsListComponent implements AfterViewInit, OnChanges {
332332
return this.selection.selected.reduce(
333333
(acc, grp) =>
334334
acc &&
335-
this.authResolver.isAuthorized('removeGroupUnion_Group_Group_policy', [
335+
this.authResolver.isAuthorized('result-removeGroupUnion_Group_Group_policy', [
336336
this.parentGroup,
337-
grp,
338-
]),
337+
]) &&
338+
this.authResolver.isAuthorized('operand-removeGroupUnion_Group_Group_policy', [grp]),
339339
true
340340
);
341341
} else if (this.authType === 'vo-groups') {

0 commit comments

Comments
 (0)