Merge pull request #5520 from tsiegleauq/more-permission-checks

Hide group selector without manage rights
This commit is contained in:
Emanuel Schütze 2020-08-21 17:49:04 +02:00 committed by GitHub
commit d8f62a05ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

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