From 85c42410d72441d4c87403540094a73d6246917a Mon Sep 17 00:00:00 2001 From: dave Date: Mon, 23 Feb 2009 14:01:33 +0000 Subject: new group edit options on discussion git-svn-id: https://code.elgg.org/elgg/trunk@2895 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/actions/forums/editpost.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'mod/groups/actions/forums') 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")); -- cgit v1.2.3