Merge pull request #5034 from GabrielInTheWorld/permsOfAgenda
Fixes seeing list of speakers in topic-detail
This commit is contained in:
commit
d8296f3e62
@ -97,7 +97,7 @@
|
||||
<os-projector-button [object]="itemListSlide" [menuItem]="true"></os-projector-button>
|
||||
|
||||
<!-- Current list of speakers -->
|
||||
<button mat-menu-item routerLink="speakers">
|
||||
<button mat-menu-item *osPerms="'agenda.can_see_list_of_speakers'" routerLink="speakers">
|
||||
<mat-icon>mic</mat-icon>
|
||||
<span translate>Current list of speakers</span>
|
||||
</button>
|
||||
|
@ -18,7 +18,7 @@
|
||||
</div>
|
||||
|
||||
<!-- Menu -->
|
||||
<div class="menu-slot" *osPerms="'agenda.can_manage'">
|
||||
<div class="menu-slot" *osPerms="'agenda.can_manage'; or: 'agenda.can_see_list_of_speakers'">
|
||||
<button type="button" mat-icon-button [matMenuTriggerFor]="topicExtraMenu">
|
||||
<mat-icon>more_vert</mat-icon>
|
||||
</button>
|
||||
@ -105,7 +105,7 @@
|
||||
<os-speaker-button [object]="topic" [menuItem]="true"></os-speaker-button>
|
||||
<div>
|
||||
<mat-divider></mat-divider>
|
||||
<button mat-menu-item class="red-warning-text" (click)="onDeleteButton()">
|
||||
<button *osPerms="'agenda.can_manage'" mat-menu-item class="red-warning-text" (click)="onDeleteButton()">
|
||||
<mat-icon>delete</mat-icon>
|
||||
<span translate>Delete</span>
|
||||
</button>
|
||||
|
Loading…
Reference in New Issue
Block a user