Skip to content

Commit

Permalink
Hide delete for admin (fixes #868) (#879)
Browse files Browse the repository at this point in the history
  • Loading branch information
lmmrssa authored and paulbert committed May 10, 2018
1 parent c49120a commit 9fda306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/users/users.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ <h1 i18n>All Users</h1>
</span>
<button mat-raised-button color="primary" *ngIf="!element.myTeamInfo else addTeam" (click)="addTeams([element])">Add Team</button>
<ng-template #addTeam><button mat-raised-button color="primary" (click)="removeTeam(element.doc._id, element.doc.name)">Remove Team</button></ng-template>
<button mat-raised-button color="primary" (click)="deleteClick(element.doc)">
<button mat-raised-button color="primary" (click)="deleteClick(element.doc)" *ngIf="!element.doc.isUserAdmin || element.doc.roles.length > 0">
<mat-icon>delete</mat-icon>Delete
</button>
<a routerLink="/users/profile/{{element.doc.name}}" mat-raised-button color="primary" i18n>
Expand Down

0 comments on commit 9fda306

Please sign in to comment.