Skip to content

Commit

Permalink
Add perm check to remove from motion block
Browse files Browse the repository at this point in the history
  • Loading branch information
reiterl committed Oct 12, 2023
1 parent 1d5410a commit a6f7a22
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 a6f7a22

Please sign in to comment.