aboutsummaryrefslogtreecommitdiff
path: root/mod/groups
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-24 01:49:54 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-24 01:49:54 +0000
commit5003371ec531296d6aa60156b16199df33395bdf (patch)
treed2741ab131630fdff04b40d4ea9899d45f191843 /mod/groups
parent38f3674095d16bfb73320eb2e0b566ad4484882d (diff)
downloadelgg-5003371ec531296d6aa60156b16199df33395bdf.tar.gz
elgg-5003371ec531296d6aa60156b16199df33395bdf.tar.bz2
Refs #2451: Removes (admin_)gatekeeper() calls from core plugin actions
git-svn-id: http://code.elgg.org/elgg/trunk@7434 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'mod/groups')
-rw-r--r--mod/groups/actions/addtogroup.php2
-rw-r--r--mod/groups/actions/featured.php3
-rw-r--r--mod/groups/actions/groupskillinvitation.php2
-rw-r--r--mod/groups/actions/groupskillrequest.php2
-rw-r--r--mod/groups/actions/invite.php2
-rw-r--r--mod/groups/actions/join.php2
-rw-r--r--mod/groups/actions/joinrequest.php2
-rw-r--r--mod/groups/actions/leave.php2
-rw-r--r--mod/groups/start.php2
9 files changed, 1 insertions, 18 deletions
diff --git a/mod/groups/actions/addtogroup.php b/mod/groups/actions/addtogroup.php
index 346b6065e..2da045fc6 100644
--- a/mod/groups/actions/addtogroup.php
+++ b/mod/groups/actions/addtogroup.php
@@ -9,8 +9,6 @@
// Load configuration
global $CONFIG;
- gatekeeper();
-
$logged_in_user = get_loggedin_user();
$user_guid = get_input('user_guid');
diff --git a/mod/groups/actions/featured.php b/mod/groups/actions/featured.php
index b49a76471..a63b93c0d 100644
--- a/mod/groups/actions/featured.php
+++ b/mod/groups/actions/featured.php
@@ -6,11 +6,8 @@
* @package ElggGroups
*/
- // Load configuration
global $CONFIG;
- admin_gatekeeper();
-
$group_guid = get_input('group_guid');
$action = get_input('action_type');
diff --git a/mod/groups/actions/groupskillinvitation.php b/mod/groups/actions/groupskillinvitation.php
index 46d71bede..c5f1d9bf5 100644
--- a/mod/groups/actions/groupskillinvitation.php
+++ b/mod/groups/actions/groupskillinvitation.php
@@ -8,8 +8,6 @@
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
diff --git a/mod/groups/actions/groupskillrequest.php b/mod/groups/actions/groupskillrequest.php
index c0511cc0e..7b53fe37b 100644
--- a/mod/groups/actions/groupskillrequest.php
+++ b/mod/groups/actions/groupskillrequest.php
@@ -8,8 +8,6 @@
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
diff --git a/mod/groups/actions/invite.php b/mod/groups/actions/invite.php
index 6fe379fe1..eef8fb5ce 100644
--- a/mod/groups/actions/invite.php
+++ b/mod/groups/actions/invite.php
@@ -9,8 +9,6 @@
// Load configuration
global $CONFIG;
-gatekeeper();
-
$logged_in_user = get_loggedin_user();
$user_guid = get_input('user_guid');
diff --git a/mod/groups/actions/join.php b/mod/groups/actions/join.php
index 40f227ba7..95c9660ff 100644
--- a/mod/groups/actions/join.php
+++ b/mod/groups/actions/join.php
@@ -8,8 +8,6 @@
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
diff --git a/mod/groups/actions/joinrequest.php b/mod/groups/actions/joinrequest.php
index f9bdf2f21..b61afbed6 100644
--- a/mod/groups/actions/joinrequest.php
+++ b/mod/groups/actions/joinrequest.php
@@ -8,8 +8,6 @@
// Load configuration
global $CONFIG;
-gatekeeper();
-
$user_guid = get_input('user_guid', get_loggedin_userid());
$group_guid = get_input('group_guid');
diff --git a/mod/groups/actions/leave.php b/mod/groups/actions/leave.php
index 78431961a..ebb473817 100644
--- a/mod/groups/actions/leave.php
+++ b/mod/groups/actions/leave.php
@@ -8,8 +8,6 @@
// Load configuration
global $CONFIG;
- gatekeeper();
-
$user_guid = get_input('user_guid');
$group_guid = get_input('group_guid');
diff --git a/mod/groups/start.php b/mod/groups/start.php
index 7fa2f5233..c09378c98 100644
--- a/mod/groups/start.php
+++ b/mod/groups/start.php
@@ -643,7 +643,7 @@
elgg_register_action("groups/addpost", $CONFIG->pluginspath . "groups/actions/forums/addpost.php");
elgg_register_action("groups/edittopic", $CONFIG->pluginspath . "groups/actions/forums/edittopic.php");
elgg_register_action("groups/deletepost", $CONFIG->pluginspath . "groups/actions/forums/deletepost.php");
- elgg_register_action("groups/featured", $CONFIG->pluginspath . "groups/actions/featured.php");
+ elgg_register_action("groups/featured", $CONFIG->pluginspath . "groups/actions/featured.php", 'admin');
elgg_register_action("groups/editpost", $CONFIG->pluginspath . "groups/actions/forums/editpost.php");
?>