Do not impersonate same user
This commit is contained in:
parent
6592157922
commit
68d2443c58
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue