diff --git a/src/app/admin/permission/permission-detail/permission-detail.component.html b/src/app/admin/permission/permission-detail/permission-detail.component.html index bd6774bed..5bd2decaa 100644 --- a/src/app/admin/permission/permission-detail/permission-detail.component.html +++ b/src/app/admin/permission/permission-detail/permission-detail.component.html @@ -33,8 +33,7 @@

{{ 'PERMISSION.DETAIL.APPLICATIONS' | translate }}

- - + diff --git a/src/app/admin/permission/permission-detail/permission-detail.component.ts b/src/app/admin/permission/permission-detail/permission-detail.component.ts index e13ec9a13..ef2bde9a3 100644 --- a/src/app/admin/permission/permission-detail/permission-detail.component.ts +++ b/src/app/admin/permission/permission-detail/permission-detail.component.ts @@ -113,14 +113,4 @@ export class PermissionDetailComponent implements OnInit, OnChanges { onEditPermission() { this.router.navigate(['edit-permission'], { relativeTo: this.route }); } - - isApplicationAdmin () { - if (this.permission) { - if (this.permission.type.some(perm => perm.type === PermissionType.OrganizationApplicationAdmin)) { - return true; - } - } - - return false; - } } diff --git a/src/app/admin/permission/permission.model.ts b/src/app/admin/permission/permission.model.ts index ea0bb414a..f8777dfe5 100644 --- a/src/app/admin/permission/permission.model.ts +++ b/src/app/admin/permission/permission.model.ts @@ -23,6 +23,7 @@ export interface PermissionResponse { users?: UserResponse[]; organization?: OrganisationResponse; applications?: Application[]; + applicationIds?: number[]; id: number; createdAt: Date; updatedAt: Date; diff --git a/src/app/applications/application-detail/application-detail.component.ts b/src/app/applications/application-detail/application-detail.component.ts index 84587a0e6..707d8bdc4 100644 --- a/src/app/applications/application-detail/application-detail.component.ts +++ b/src/app/applications/application-detail/application-detail.component.ts @@ -53,7 +53,7 @@ export class ApplicationDetailComponent implements OnInit, OnDestroy { label: '', editRouterLink: '../../edit-application/' + this.id, isErasable: true, - }; + }; } this.translate @@ -68,7 +68,7 @@ export class ApplicationDetailComponent implements OnInit, OnDestroy { translations['APPLICATION-TABLE-ROW.SHOW-OPTIONS']; this.titleService.setTitle(translations['TITLE.APPLICATION']); }); - this.canEdit = this.meService.hasAccessToTargetOrganization(OrganizationAccessScope.ApplicationWrite); + this.canEdit = this.meService.hasAccessToTargetOrganization(OrganizationAccessScope.ApplicationWrite, undefined, this.id); } onDeleteApplication() { diff --git a/src/app/applications/applications-list/applications-table/applications-table.component.html b/src/app/applications/applications-list/applications-table/applications-table.component.html index c945d5a1e..3e8237f8d 100644 --- a/src/app/applications/applications-list/applications-table/applications-table.component.html +++ b/src/app/applications/applications-list/applications-table/applications-table.component.html @@ -34,7 +34,7 @@ -