aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 11:22:42 +0000
committerben <ben@36083f99-b078-4883-b0ff-0f9b5a30f544>2009-02-24 11:22:42 +0000
commit420bd55dadd43bd47607b38aa6963af9fe7aeaa5 (patch)
treea244190c3cb3a04f13198686689aaf775a9e68a1 /mod/groups
parent4b6800c01e2701c7c89f46a6fb27c15670f1fdb6 (diff)
downloadelgg-420bd55dadd43bd47607b38aa6963af9fe7aeaa5.tar.gz
elgg-420bd55dadd43bd47607b38aa6963af9fe7aeaa5.tar.bz2
Group gatekeeper on internal group pages.
git-svn-id: https://code.elgg.org/elgg/trunk@2917 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-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();