Commit f6915ada authored by Mark Harding's avatar Mark Harding

(fix): 224, inherit canEdit

parent 76689087
No related merge requests found
Pipeline #66949384 running with stages
......@@ -42,7 +42,7 @@
<ul class="m-comment__ribbon" [hidden]="!toggle.value" #toggle>
<li class="m-commentRibbon__item"
*ngIf="comment.owner_guid == session.getLoggedInUser()?.guid || session.isAdmin()"
*ngIf="comment.owner_guid == session.getLoggedInUser()?.guid || session.isAdmin() || canEdit"
(click)="editing = !editing; toggle.value = false"
title="Edit"
i18n-title="@@M__ACTION__EDIT"
......
......@@ -89,6 +89,9 @@ export class CommentsTreeComponent {
if (this.entity.entity_guid)
this.guid = this.entity.entity_guid;
this.parent = this.entity;
if (!this.canEdit) {
this.canEdit = this.entity.owner_guid == this.session.getLoggedInUser().guid;
}
}
onScrollToBottom() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment