diff options
author | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 01:49:54 +0000 |
---|---|---|
committer | ewinslow <ewinslow@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2010-11-24 01:49:54 +0000 |
commit | 5003371ec531296d6aa60156b16199df33395bdf (patch) | |
tree | d2741ab131630fdff04b40d4ea9899d45f191843 /mod/defaultwidgets | |
parent | 38f3674095d16bfb73320eb2e0b566ad4484882d (diff) | |
download | elgg-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/defaultwidgets')
-rw-r--r-- | mod/defaultwidgets/actions/update.php | 3 | ||||
-rw-r--r-- | mod/defaultwidgets/start.php | 4 |
2 files changed, 2 insertions, 5 deletions
diff --git a/mod/defaultwidgets/actions/update.php b/mod/defaultwidgets/actions/update.php index 466bae5a6..9b34c228c 100644 --- a/mod/defaultwidgets/actions/update.php +++ b/mod/defaultwidgets/actions/update.php @@ -6,9 +6,6 @@ * **/ -// validate user is an admin -admin_gatekeeper (); - // get parameters $context = get_input ( 'context' ); $leftbar = str_replace ( '::0', '', get_input ( 'debugField1' ) ); diff --git a/mod/defaultwidgets/start.php b/mod/defaultwidgets/start.php index f7adc3581..acac3f338 100644 --- a/mod/defaultwidgets/start.php +++ b/mod/defaultwidgets/start.php @@ -24,7 +24,7 @@ global $CONFIG; */ function defaultwidgets_init() { // register create user event hook - register_elgg_event_handler ( 'create', 'user', 'defaultwidgets_newusers' ); + elgg_register_event_handler('create', 'user', 'defaultwidgets_newusers' ); // set the widget access to the default access on validation if this is not an admin-created user if (!isadminloggedin()) { @@ -204,4 +204,4 @@ elgg_register_plugin_hook_handler('permissions_check', 'user', 'defaultwidgets_c elgg_register_plugin_hook_handler('permissions_check', 'object', 'defaultwidgets_can_edit'); elgg_register_plugin_hook_handler('container_permissions_check', 'user', 'defaultwidgets_can_edit_container'); -elgg_register_action("defaultwidgets/update", $CONFIG->pluginspath . "defaultwidgets/actions/update.php"); +elgg_register_action("defaultwidgets/update", $CONFIG->pluginspath . "defaultwidgets/actions/update.php", 'admin'); |