aboutsummaryrefslogtreecommitdiff
path: root/mod
diff options
context:
space:
mode:
Diffstat (limited to 'mod')
-rw-r--r--mod/groups/discussions.php2
-rw-r--r--mod/groups/forum.php2
-rw-r--r--mod/groups/membership.php1
-rw-r--r--mod/groups/topicposts.php2
4 files changed, 7 insertions, 0 deletions
diff --git a/mod/groups/discussions.php b/mod/groups/discussions.php
index 29e39ef44..da240c883 100644
--- a/mod/groups/discussions.php
+++ b/mod/groups/discussions.php
@@ -15,6 +15,8 @@
// Load Elgg engine
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
+ group_gatekeeper();
+
// Display them
$area2 = elgg_view_title(elgg_echo("groups:latestdiscussion"));
set_context('search');
diff --git a/mod/groups/forum.php b/mod/groups/forum.php
index dd4b734b2..910d35929 100644
--- a/mod/groups/forum.php
+++ b/mod/groups/forum.php
@@ -14,6 +14,8 @@
set_page_owner((int)get_input('group_guid'));
if (!(page_owner_entity() instanceof ElggGroup)) forward();
+ group_gatekeeper();
+
//get any forum topics
//get any forum topics
$topics = list_entities_from_annotations("object", "groupforumtopic", "group_topic_post", "", 20, 0, get_input('group_guid'), false, false, false);
diff --git a/mod/groups/membership.php b/mod/groups/membership.php
index abb358f40..cca47775b 100644
--- a/mod/groups/membership.php
+++ b/mod/groups/membership.php
@@ -13,6 +13,7 @@
require_once(dirname(dirname(dirname(__FILE__))) . "/engine/start.php");
gatekeeper();
+ group_gatekeeper();
$limit = get_input("limit", 10);
$offset = get_input("offset", 0);
diff --git a/mod/groups/topicposts.php b/mod/groups/topicposts.php
index ea8a82bac..b530404b6 100644
--- a/mod/groups/topicposts.php
+++ b/mod/groups/topicposts.php
@@ -21,6 +21,8 @@
set_page_owner(get_input('group_guid'));
if (!(page_owner_entity() instanceof ElggGroup)) forward();
+ group_gatekeeper();
+
// get the entity from id
$topic = get_entity(get_input('topic'));
if (!$topic) forward();