Hide group selector without manage rights

Fixes a bug where the user group selector was shown even though the user
had not permission to manage the users
This commit is contained in:
Sean 2020-08-21 16:09:06 +02:00
parent 216e4f00a3
commit 7af65f790e
1 changed files with 4 additions and 2 deletions

View File

@ -154,7 +154,7 @@
</mat-form-field>
</div>
<div>
<div *osPerms="permission.usersCanManage">
<!-- Groups -->
<mat-form-field>
<os-search-value-selector
@ -253,7 +253,9 @@
<mat-icon *ngIf="user.is_present && isAllowed('seeName')" matTooltip="{{ 'Is present' | translate }}"
>check_box</mat-icon
>
<mat-icon *ngIf="user.is_committee && isAllowed('seeName')" matTooltip="{{ 'Is committee' | translate }}"
<mat-icon
*ngIf="user.is_committee && isAllowed('seeName')"
matTooltip="{{ 'Is committee' | translate }}"
>account_balance</mat-icon
>
<mat-icon *ngIf="!user.is_active && isAllowed('seeExtra')" matTooltip="{{ 'Inactive' | translate }}"