From 420bd55dadd43bd47607b38aa6963af9fe7aeaa5 Mon Sep 17 00:00:00 2001 From: ben Date: Tue, 24 Feb 2009 11:22:42 +0000 Subject: Group gatekeeper on internal group pages. git-svn-id: https://code.elgg.org/elgg/trunk@2917 36083f99-b078-4883-b0ff-0f9b5a30f544 --- mod/groups/discussions.php | 2 ++ mod/groups/forum.php | 2 ++ mod/groups/membership.php | 1 + mod/groups/topicposts.php | 2 ++ 4 files changed, 7 insertions(+) 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(); -- cgit v1.2.3