aboutsummaryrefslogtreecommitdiff
path: root/mod/groups/addtopic.php
diff options
context:
space:
mode:
Diffstat (limited to 'mod/groups/addtopic.php')
-rw-r--r--mod/groups/addtopic.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/mod/groups/addtopic.php b/mod/groups/addtopic.php
index 167dcbf32..08e335f03 100644
--- a/mod/groups/addtopic.php
+++ b/mod/groups/addtopic.php
@@ -13,9 +13,11 @@
// Load Elgg engine
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
- $page_owner = set_page_owner((int)get_input('group_guid'));
+ gatekeeper();
- if (!(page_owner_entity() instanceof ElggGroup)) forward();
+ $page_owner = set_page_owner((int)get_input('group_guid'));
+
+ if (!(page_owner_entity() instanceof ElggGroup)) forward();
// sort the display
$area2 = elgg_view("forms/forums/addtopic");