aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/views/default/river
diff options
context:
space:
mode:
authorcash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-20 23:34:10 +0000
committercash <cash@36083f99-b078-4883-b0ff-0f9b5a30f544>2011-03-20 23:34:10 +0000
commit346d082dae4da3908f7c7a6b8b9946768e19f5d6 (patch)
tree970a50a0b5dc7eeec6d1d616ea788fdf85534697 /mod/groups/views/default/river
parent8d8c62f3ed7be6691d76824ae82888aba2bb1616 (diff)
downloadelgg-346d082dae4da3908f7c7a6b8b9946768e19f5d6.tar.gz
elgg-346d082dae4da3908f7c7a6b8b9946768e19f5d6.tar.bz2
Fixes #2974 using canWriteToContainer() to control access to creating group content
git-svn-id: http://code.elgg.org/elgg/trunk@8795 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups/views/default/river')
-rw-r--r--mod/groups/views/default/river/object/groupforumtopic/create.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/views/default/river/object/groupforumtopic/create.php b/mod/groups/views/default/river/object/groupforumtopic/create.php
index 2c914c3f8..ca4747338 100644
--- a/mod/groups/views/default/river/object/groupforumtopic/create.php
+++ b/mod/groups/views/default/river/object/groupforumtopic/create.php
@@ -34,7 +34,7 @@ if ($excerpt) {
echo '</div>';
}
-if (elgg_is_logged_in() && $container->isMember(elgg_get_logged_in_user_entity())) {
+if (elgg_is_logged_in() && $container->canWriteToContainer()) {
// inline comment form
echo elgg_view_form('discussion/reply/save', array(
'id' => "groups-reply-{$object->getGUID()}",