aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/discussion/reply/save.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/actions/discussion/reply/save.php')
-rw-r--r--mod/groups/actions/discussion/reply/save.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/actions/discussion/reply/save.php b/mod/groups/actions/discussion/reply/save.php
index e535856da..109938dbb 100644
--- a/mod/groups/actions/discussion/reply/save.php
+++ b/mod/groups/actions/discussion/reply/save.php
@@ -25,7 +25,7 @@ if (!$topic) {
$user = get_loggedin_user();
$group = $topic->getContainerEntity();
-if (!$group->isMember($user)) {
+if (!$group->canWriteToContainer($user)) {
register_error(elgg_echo('groups:notmember'));
forward(REFERER);
}