aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/forums
diff options
context:
space:
mode:
authordave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 14:01:33 +0000
committerdave <dave@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-23 14:01:33 +0000
commit85c42410d72441d4c87403540094a73d6246917a (patch)
tree1ea70a2b3a58a3011decdbbb4daa8f3ca0551c67 /mod/groups/actions/forums
parent7dc3d72e9d9a1d2cc919a14cc1df5171b91d62ad (diff)
downloadelgg-85c42410d72441d4c87403540094a73d6246917a.tar.gz
elgg-85c42410d72441d4c87403540094a73d6246917a.tar.bz2
new group edit options on discussion
git-svn-id: https://code.elgg.org/elgg/trunk@2895 36083f99-b078-4883-b0ff-0f9b5a30f544
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"));