Skip to content

Commit

Permalink
Add perm check to remove from motion block (#2883)
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl authored Oct 23, 2023
1 parent d7b2f94 commit beb883e
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,12 @@
<ng-template matMenuContent let-motion="motion">
<os-projector-button [object]="motion" [menuItem]="true"></os-projector-button>
<os-speaker-button [object]="motion" [menuItem]="true"></os-speaker-button>
<button mat-menu-item class="red-warning-text" (click)="onRemoveMotionButton(motion)">
<button
mat-menu-item
class="red-warning-text"
(click)="onRemoveMotionButton(motion)"
*osPerms="[permission.motionCanManage, permission.motionCanManageMetadata]"
>
<mat-icon>close</mat-icon>
<span>{{ 'Remove from motion block' | translate }}</span>
</button>
Expand Down

0 comments on commit beb883e

Please sign in to comment.