aboutsummaryrefslogtreecommitdiff
path: root/engine/lib/actions.php
diff options
context:
space:
mode:
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'));