Merge pull request #5732 from emanuelschuetze/fixAssignmentManagePermission
Fixed permission for assignment submenu.
This commit is contained in:
commit
96f96f09ee
@ -90,7 +90,7 @@
|
|||||||
|
|
||||||
<mat-menu #assignmentMenu="matMenu">
|
<mat-menu #assignmentMenu="matMenu">
|
||||||
<div *ngIf="!isMultiSelect">
|
<div *ngIf="!isMultiSelect">
|
||||||
<button mat-menu-item *osPerms="'assignment.can_manage'" (click)="toggleMultiSelect()">
|
<button mat-menu-item *osPerms="'assignments.can_manage'" (click)="toggleMultiSelect()">
|
||||||
<mat-icon>library_add</mat-icon>
|
<mat-icon>library_add</mat-icon>
|
||||||
<span>{{ 'Multiselect' | translate }}</span>
|
<span>{{ 'Multiselect' | translate }}</span>
|
||||||
</button>
|
</button>
|
||||||
@ -119,7 +119,6 @@
|
|||||||
</button>
|
</button>
|
||||||
<mat-divider></mat-divider>
|
<mat-divider></mat-divider>
|
||||||
<button
|
<button
|
||||||
*osPerms="'assignment.can_manage'"
|
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
[disabled]="!selectedRows.length"
|
[disabled]="!selectedRows.length"
|
||||||
(click)="downloadAssignmentButton(selectedRows)"
|
(click)="downloadAssignmentButton(selectedRows)"
|
||||||
@ -131,7 +130,7 @@
|
|||||||
<button
|
<button
|
||||||
mat-menu-item
|
mat-menu-item
|
||||||
class="red-warning-text"
|
class="red-warning-text"
|
||||||
*osPerms="'assignment.can_manage'"
|
*osPerms="'assignments.can_manage'"
|
||||||
[disabled]="!selectedRows.length"
|
[disabled]="!selectedRows.length"
|
||||||
(click)="deleteSelected()"
|
(click)="deleteSelected()"
|
||||||
>
|
>
|
||||||
|
Loading…
Reference in New Issue
Block a user