Merge pull request #5930 from FinnStutzenstein/losPermissions

Fix usage of osPerms
This commit is contained in:
Finn Stutzenstein 2021-03-01 15:37:06 +01:00 committed by GitHub
commit c35cacebb1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -141,7 +141,7 @@
<span>{{ 'Deselect all' | translate }}</span> <span>{{ 'Deselect all' | translate }}</span>
</button> </button>
<ng-container *osPerms="'motions.can_manage'; or: 'motions.can_manage_metadata'"> <ng-container *osPerms="['motions.can_manage', 'motions.can_manage_metadata']">
<mat-divider></mat-divider> <mat-divider></mat-divider>
<os-motion-multiselect-actions [selectedMotions]="selectedRows" (action)="multiselectWrapper($event)"> <os-motion-multiselect-actions [selectedMotions]="selectedRows" (action)="multiselectWrapper($event)">
</os-motion-multiselect-actions> </os-motion-multiselect-actions>

View File

@ -18,7 +18,7 @@
</div> </div>
<!-- Menu --> <!-- Menu -->
<div class="menu-slot" *osPerms="'agenda.can_manage'; or: 'agenda.can_see_list_of_speakers'"> <div class="menu-slot" *osPerms="['agenda.can_manage', 'agenda.can_see_list_of_speakers']">
<button type="button" mat-icon-button [matMenuTriggerFor]="topicExtraMenu"> <button type="button" mat-icon-button [matMenuTriggerFor]="topicExtraMenu">
<mat-icon>more_vert</mat-icon> <mat-icon>more_vert</mat-icon>
</button> </button>