aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/forums
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/forums')
-rw-r--r--mod/groups/actions/forums/editpost.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/actions/forums/editpost.php b/mod/groups/actions/forums/editpost.php
index e3b5566ef..7f6e75683 100644
--- a/mod/groups/actions/forums/editpost.php
+++ b/mod/groups/actions/forums/editpost.php
@@ -29,7 +29,7 @@
if($annotation){
//can edit? Either the comment owner or admin can
- if($annotation->canedit() || ($commentOwner == $_SESSION['user']->guid)){
+ if(groups_can_edit_discussion($annotation, page_owner_entity()->owner_guid)){
update_annotation($post, "group_topic_post", $post_comment, "",$commentOwner, $access_id);
system_message(elgg_echo("groups:forumpost:edited"));