Do not impersonate same user

This commit is contained in:
Matteo Gheza 2022-02-24 22:21:06 +01:00
parent 6592157922
commit 68d2443c58
1 changed files with 1 additions and 1 deletions

View File

@ -15,7 +15,7 @@
<tbody id="table_body">
<tr *ngFor="let row of data">
<td>
<i *ngIf="auth.profile.hasRole('SUPER_ADMIN')" class="fa fa-user me-2" (click)="onUserImpersonate(row.id)"></i>
<i *ngIf="auth.profile.hasRole('SUPER_ADMIN') && row.id !== auth.profile.auth_user_id" class="fa fa-user me-2" (click)="onUserImpersonate(row.id)"></i>
<img alt="red helmet" src="./assets/icons/red_helmet.png" width="20px" *ngIf="row.chief">
<img alt="red helmet" src="./assets/icons/black_helmet.png" width="20px" *ngIf="!row.chief">
<ng-container *ngIf="(getTime() - row.online_time) < 30"><u>{{ row.name }}</u></ng-container>