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/start.php | |
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/start.php')
-rw-r--r-- | mod/defaultwidgets/start.php | 4 |
1 files changed, 2 insertions, 2 deletions
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'); |