Skip to content

Commit 96483d6

Browse files
authored
Checking for manage-post permissions before showing sms-conversation (#755)
1 parent 73e6842 commit 96483d6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

apps/web-mzima-client/src/app/post/post-details/post-details.component.html

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,12 @@ <h3>{{ field.label }}</h3>
166166
<app-post-metadata *ngIf="post.id" [post]="post"></app-post-metadata>
167167
</ng-container>
168168
</div>
169-
<app-post-conversation *ngIf="post && post.source === 'SMS'" [post]="post"></app-post-conversation>
169+
<ng-container *ngIf="isManagePosts">
170+
<app-post-conversation
171+
*ngIf="post && post.source === 'SMS'"
172+
[post]="post"
173+
></app-post-conversation>
174+
</ng-container>
170175
<ng-template #spinner>
171176
<app-spinner *ngIf="isPostLoading" class="spinner"></app-spinner>
172177
<p

0 commit comments

Comments
 (0)