diff options
author | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 14:57:57 +0000 |
---|---|---|
committer | marcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2008-08-11 14:57:57 +0000 |
commit | e438c44670e91ca5f1dd5cf289c117c670ca2f26 (patch) | |
tree | 9e05100d86be451ebf736e364bbdfc5b53432725 /engine/lib/actions.php | |
parent | 3affeda9d085fd10ddff77e5948b8b76694103c5 (diff) | |
download | elgg-e438c44670e91ca5f1dd5cf289c117c670ca2f26.tar.gz elgg-e438c44670e91ca5f1dd5cf289c117c670ca2f26.tar.bz2 |
Minor bugfix to actions_gatekeeper()
git-svn-id: https://code.elgg.org/elgg/trunk@1834 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/actions.php')
-rw-r--r-- | engine/lib/actions.php | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php index bc8b09589..28a16c403 100644 --- a/engine/lib/actions.php +++ b/engine/lib/actions.php @@ -138,10 +138,15 @@ { $returnval = true; // We have already got this far, so unless anything else says something to the contry we assume we're ok - return trigger_plugin_hook('action_gatekeeper:permissions:check', 'all', array( + $returnval = trigger_plugin_hook('action_gatekeeper:permissions:check', 'all', array( 'token' => $token, 'time' => $ts ), $returnval); + + if ($returnval) + return true; + else + register_error(elgg_echo('actiongatekeeper:pluginprevents')); } else register_error(elgg_echo('actiongatekeeper:timeerror')); |