[Library | Trunk]: Add isCurator condition on role-users.
git-svn-id: https://svn.driver.research-infrastructures.eu/driver/dnet40/modules/uoa-services-library/trunk/ng-openaire-library/src/app@60444 d315682c-612b-4755-9ff5-7f18f6832af3
This commit is contained in:
parent
e8b37fc533
commit
747556293f
|
@ -50,7 +50,7 @@
|
|||
<span class="uk-text-bold">{{(showActive) ? item.email : item}}</span>
|
||||
</div>
|
||||
</div>
|
||||
<div *ngIf="isPortalAdmin || !showActive" class="uk-width-expand">
|
||||
<div *ngIf="isCurator || !showActive" class="uk-width-expand">
|
||||
<div class="uk-padding-small uk-padding-remove-horizontal uk-flex uk-flex-center">
|
||||
<a (click)="openDeleteModal(item)" class="uk-button action uk-flex uk-flex-middle">
|
||||
<icon name="remove_circle_outline" ratio="0.7" [flex]="true"></icon>
|
||||
|
|
|
@ -230,7 +230,11 @@ export class RoleUsersComponent implements OnInit, OnDestroy, OnChanges {
|
|||
});
|
||||
}
|
||||
|
||||
public get isPortalAdmin() {
|
||||
return Session.isPortalAdministrator(this.user) || Session.isCurator(this.type, this.user);
|
||||
public get isCurator(): boolean {
|
||||
return this.isPortalAdmin || !!Session.isCurator(this.type, this.user);
|
||||
}
|
||||
|
||||
public get isPortalAdmin(): boolean {
|
||||
return !!Session.isPortalAdministrator(this.user);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue