aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--engine/lib/actions.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/engine/lib/actions.php b/engine/lib/actions.php
index f5cd55271..26d56104b 100644
--- a/engine/lib/actions.php
+++ b/engine/lib/actions.php
@@ -137,7 +137,13 @@
// Validate time to ensure its not crazy
if (($ts>$now-$hour) && ($ts<$now+$hour))
{
- return true;
+ $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(
+ 'action' => $action,
+ 'token' => $token,
+ 'time' => $ts
+ ), $returnval);
}
else
register_error(elgg_echo('actiongatekeeper:timeerror'));