aboutsummaryrefslogtreecommitdiff
path: root/actions/admin
diff options
context:
space:
mode:
authorewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-24 01:23:02 +0000
committerewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544>2010-11-24 01:23:02 +0000
commit38f3674095d16bfb73320eb2e0b566ad4484882d (patch)
treefdb6d200e5aed04ec6e7e77bfa2c76fcafd75639 /actions/admin
parent9c1e6d6463937bdee2d1de9735463a69f8af305d (diff)
downloadelgg-38f3674095d16bfb73320eb2e0b566ad4484882d.tar.gz
elgg-38f3674095d16bfb73320eb2e0b566ad4484882d.tar.bz2
Refs #2451: Removed gatekeeper/admin_gatekeeper() calls from core actions
git-svn-id: http://code.elgg.org/elgg/trunk@7433 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'actions/admin')
-rw-r--r--actions/admin/plugins/disable.php2
-rw-r--r--actions/admin/plugins/disableall.php2
-rw-r--r--actions/admin/plugins/enable.php2
-rw-r--r--actions/admin/plugins/enableall.php2
-rw-r--r--actions/admin/plugins/reorder.php2
-rw-r--r--actions/admin/site/update_advanced.php2
-rw-r--r--actions/admin/site/update_basic.php2
-rw-r--r--actions/admin/user/ban.php2
-rw-r--r--actions/admin/user/delete.php4
-rw-r--r--actions/admin/user/makeadmin.php2
-rw-r--r--actions/admin/user/removeadmin.php2
-rw-r--r--actions/admin/user/resetpassword.php2
-rw-r--r--actions/admin/user/unban.php2
13 files changed, 0 insertions, 28 deletions
diff --git a/actions/admin/plugins/disable.php b/actions/admin/plugins/disable.php
index 9db5aec11..64994423f 100644
--- a/actions/admin/plugins/disable.php
+++ b/actions/admin/plugins/disable.php
@@ -11,8 +11,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
$plugin = get_input('plugin');
if (!is_array($plugin)) {
$plugin = array($plugin);
diff --git a/actions/admin/plugins/disableall.php b/actions/admin/plugins/disableall.php
index 21938727e..351ebf840 100644
--- a/actions/admin/plugins/disableall.php
+++ b/actions/admin/plugins/disableall.php
@@ -9,8 +9,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
$plugins = get_installed_plugins();
foreach ($plugins as $p => $data) {
diff --git a/actions/admin/plugins/enable.php b/actions/admin/plugins/enable.php
index d3ad5606d..ebabe7bc8 100644
--- a/actions/admin/plugins/enable.php
+++ b/actions/admin/plugins/enable.php
@@ -11,8 +11,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
$plugin = get_input('plugin');
if (!is_array($plugin)) {
diff --git a/actions/admin/plugins/enableall.php b/actions/admin/plugins/enableall.php
index 9a2df00dc..04574f067 100644
--- a/actions/admin/plugins/enableall.php
+++ b/actions/admin/plugins/enableall.php
@@ -9,8 +9,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
$plugins = get_installed_plugins();
foreach ($plugins as $p => $data) {
diff --git a/actions/admin/plugins/reorder.php b/actions/admin/plugins/reorder.php
index 2158653e1..29c4a7268 100644
--- a/actions/admin/plugins/reorder.php
+++ b/actions/admin/plugins/reorder.php
@@ -14,8 +14,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
$mod = get_input('plugin');
$mod = str_replace('.', '', $mod);
$mod = str_replace('/', '', $mod);
diff --git a/actions/admin/site/update_advanced.php b/actions/admin/site/update_advanced.php
index 127fd38b6..523c64e3e 100644
--- a/actions/admin/site/update_advanced.php
+++ b/actions/admin/site/update_advanced.php
@@ -9,8 +9,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
if (datalist_get('default_site')) {
$site = get_entity(datalist_get('default_site'));
if (!($site instanceof ElggSite)) {
diff --git a/actions/admin/site/update_basic.php b/actions/admin/site/update_basic.php
index 94882cfd3..c809dc671 100644
--- a/actions/admin/site/update_basic.php
+++ b/actions/admin/site/update_basic.php
@@ -10,8 +10,6 @@
* @subpackage Administration.Site
*/
-admin_gatekeeper();
-
if (datalist_get('default_site')) {
$site = get_entity(datalist_get('default_site'));
if (!($site instanceof ElggSite)) {
diff --git a/actions/admin/user/ban.php b/actions/admin/user/ban.php
index 5ad6c29c5..a8fa57925 100644
--- a/actions/admin/user/ban.php
+++ b/actions/admin/user/ban.php
@@ -9,8 +9,6 @@
* @subpackage Administration.User
*/
-admin_gatekeeper();
-
$guid = get_input('guid');
$user = get_entity($guid);
diff --git a/actions/admin/user/delete.php b/actions/admin/user/delete.php
index a5e1886ec..c6ed5b819 100644
--- a/actions/admin/user/delete.php
+++ b/actions/admin/user/delete.php
@@ -9,10 +9,6 @@
* @subpackage Administration.User
*/
-// block non-admin users - require since this action is not registered
-// @todo why isn't this action registered?
-admin_gatekeeper();
-
// Get the user
$guid = get_input('guid');
$user = get_entity($guid);
diff --git a/actions/admin/user/makeadmin.php b/actions/admin/user/makeadmin.php
index 19f365d62..54b0b7070 100644
--- a/actions/admin/user/makeadmin.php
+++ b/actions/admin/user/makeadmin.php
@@ -11,8 +11,6 @@
* @subpackage Administration.User
*/
-admin_gatekeeper();
-
$guid = get_input('guid');
$user = get_entity($guid);
diff --git a/actions/admin/user/removeadmin.php b/actions/admin/user/removeadmin.php
index 97bfc396b..4466e925f 100644
--- a/actions/admin/user/removeadmin.php
+++ b/actions/admin/user/removeadmin.php
@@ -6,8 +6,6 @@
* @subpackage Administration.User
*/
-admin_gatekeeper();
-
$guid = get_input('guid');
$user = get_entity($guid);
diff --git a/actions/admin/user/resetpassword.php b/actions/admin/user/resetpassword.php
index 14de69cb6..e3f737974 100644
--- a/actions/admin/user/resetpassword.php
+++ b/actions/admin/user/resetpassword.php
@@ -14,8 +14,6 @@
* @subpackage Administration.User
*/
-admin_gatekeeper();
-
$guid = get_input('guid');
$user = get_entity($guid);
diff --git a/actions/admin/user/unban.php b/actions/admin/user/unban.php
index 883e074ed..7a772a0d3 100644
--- a/actions/admin/user/unban.php
+++ b/actions/admin/user/unban.php
@@ -6,8 +6,6 @@
* @subpackage Administration.User
*/
-admin_gatekeeper();
-
$access_status = access_get_show_hidden_status();
access_show_hidden_entities(true);