Commit 2b3191b1 authored by Mark Harding's avatar Mark Harding

(fix): use canDelete at tree level

No related merge requests found
Pipeline #69378545 passed with stages
in 29 minutes and 44 seconds
......@@ -90,8 +90,8 @@ 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;
if (!this.canDelete) {
this.canDelete = this.entity.owner_guid == this.session.getLoggedInUser().guid;
}
}
......
......@@ -4,7 +4,7 @@
[limit]="24"
[entity]="group"
[conversation]="true"
[canEdit]="group['is:moderator'] || group['is:creator']"
[canDelete]="group['is:moderator'] || group['is:creator']"
[readonly]="!group['is:member']"
[scrollable]="true"
>
......
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