aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/actions/discussion/save.php
diff options
context:
space:
mode:
authorCash Costello <cash.costello@gmail.com>2012-01-08 16:09:14 -0500
committerCash Costello <cash.costello@gmail.com>2012-01-08 16:09:14 -0500
commit4f4f5a8be736c36ca8af0cd65731dd7c64da3b1a (patch)
tree3f6331dc02d3b134d820a2a6ffae8aa5e0cc197c /mod/groups/actions/discussion/save.php
parentaaeed5d0c3ec561ea691cddeee20563c2b946acd (diff)
downloadelgg-4f4f5a8be736c36ca8af0cd65731dd7c64da3b1a.tar.gz
elgg-4f4f5a8be736c36ca8af0cd65731dd7c64da3b1a.tar.bz2
Fixes #3216 passing type/subtype for group discussions
Diffstat (limited to 'mod/groups/actions/discussion/save.php')
-rw-r--r--mod/groups/actions/discussion/save.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/mod/groups/actions/discussion/save.php b/mod/groups/actions/discussion/save.php
index a51775cd6..de4afadfb 100644
--- a/mod/groups/actions/discussion/save.php
+++ b/mod/groups/actions/discussion/save.php
@@ -21,7 +21,7 @@ if (!$title || !$desc) {
}
$container = get_entity($container_guid);
-if (!$container || !$container->canWriteToContainer()) {
+if (!$container || !$container->canWriteToContainer(0, 'object', 'groupforumtopic')) {
register_error(elgg_echo('discussion:error:permissions'));
forward(REFERER);
}