From 5003371ec531296d6aa60156b16199df33395bdf Mon Sep 17 00:00:00 2001 From: ewinslow Date: Wed, 24 Nov 2010 01:49:54 +0000 Subject: 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 --- mod/profile/actions/cropicon.php | 2 -- mod/profile/actions/deletedefaultprofileitem.php | 2 -- mod/profile/actions/edit.php | 1 - mod/profile/actions/editdefault.php | 1 - mod/profile/actions/editfield.php | 2 -- mod/profile/actions/iconupload.php | 2 -- mod/profile/actions/reorder.php | 1 - mod/profile/actions/resetdefaultprofile.php | 1 - 8 files changed, 12 deletions(-) (limited to 'mod/profile') diff --git a/mod/profile/actions/cropicon.php b/mod/profile/actions/cropicon.php index c44cee6bd..c65b5f56d 100644 --- a/mod/profile/actions/cropicon.php +++ b/mod/profile/actions/cropicon.php @@ -5,8 +5,6 @@ * @package ElggProfile */ -gatekeeper(); - $profile_username = get_input('username'); $profile_owner = get_user_by_username($profile_username); diff --git a/mod/profile/actions/deletedefaultprofileitem.php b/mod/profile/actions/deletedefaultprofileitem.php index f3880954f..6791d2c46 100644 --- a/mod/profile/actions/deletedefaultprofileitem.php +++ b/mod/profile/actions/deletedefaultprofileitem.php @@ -7,8 +7,6 @@ global $CONFIG; -admin_gatekeeper(); - $id = get_input('id'); $fieldlist = get_plugin_setting('user_defined_fields', 'profile'); diff --git a/mod/profile/actions/edit.php b/mod/profile/actions/edit.php index 312b72a1a..da7553b6e 100644 --- a/mod/profile/actions/edit.php +++ b/mod/profile/actions/edit.php @@ -6,7 +6,6 @@ */ global $CONFIG; -gatekeeper(); $profile_username = get_input('username'); $profile_owner = get_user_by_username($profile_username); diff --git a/mod/profile/actions/editdefault.php b/mod/profile/actions/editdefault.php index 1d50f432a..96e878402 100644 --- a/mod/profile/actions/editdefault.php +++ b/mod/profile/actions/editdefault.php @@ -6,7 +6,6 @@ */ global $CONFIG; -admin_gatekeeper(); $label = sanitise_string(get_input('label')); $type = sanitise_string(get_input('type')); diff --git a/mod/profile/actions/editfield.php b/mod/profile/actions/editfield.php index 7df7dd9cc..b3bd887ef 100644 --- a/mod/profile/actions/editfield.php +++ b/mod/profile/actions/editfield.php @@ -5,8 +5,6 @@ * @package ElggProfile */ -admin_gatekeeper(); - $field = get_input('field'); $text = get_input('value'); diff --git a/mod/profile/actions/iconupload.php b/mod/profile/actions/iconupload.php index d0a3cf28a..546aa0e9c 100644 --- a/mod/profile/actions/iconupload.php +++ b/mod/profile/actions/iconupload.php @@ -5,8 +5,6 @@ * @package ElggProfile */ -gatekeeper(); - $profile_username = get_input('username'); $profile_owner = get_user_by_username($profile_username); diff --git a/mod/profile/actions/reorder.php b/mod/profile/actions/reorder.php index dfb2bfb3d..a30e97bac 100644 --- a/mod/profile/actions/reorder.php +++ b/mod/profile/actions/reorder.php @@ -5,7 +5,6 @@ * @package ElggProfile */ -admin_gatekeeper(); $ordering = get_input('fieldorder'); //if (!empty($ordering)) $result = set_plugin_setting('user_defined_fields',$ordering,'profile'); diff --git a/mod/profile/actions/resetdefaultprofile.php b/mod/profile/actions/resetdefaultprofile.php index facc82f71..3ada044e8 100644 --- a/mod/profile/actions/resetdefaultprofile.php +++ b/mod/profile/actions/resetdefaultprofile.php @@ -6,7 +6,6 @@ */ global $CONFIG; -admin_gatekeeper(); if ($fieldlist = get_plugin_setting('user_defined_fields', 'profile')) { $fieldlistarray = explode(',', $fieldlist); -- cgit v1.2.3