aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/actions.php
diff options
context:
space:
mode:
authormarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 14:57:57 +0000
committermarcus <marcus@36083f99-b078-4883-b0ff-0f9b5a30f544>2008-08-11 14:57:57 +0000
commite438c44670e91ca5f1dd5cf289c117c670ca2f26 (patch)
tree9e05100d86be451ebf736e364bbdfc5b53432725 /engine/lib/actions.php
parent3affeda9d085fd10ddff77e5948b8b76694103c5 (diff)
downloadelgg-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.php7
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'));