aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorJakub Senko <jakubsenko@gmail.com>2017-01-23 14:27:11 +0100
committerJakub Senko <jakubsenko@gmail.com>2017-01-23 15:00:59 +0100
commitd1df78604b36375ee563edd86af5a4025ee3f6e4 (patch)
treefac2626100b5e4f7be8d04162380173a9dbc5541 /phpBB
parent2d742beb9245fdc215b9d53b846b15d608bd99e4 (diff)
downloadforums-d1df78604b36375ee563edd86af5a4025ee3f6e4.tar
forums-d1df78604b36375ee563edd86af5a4025ee3f6e4.tar.gz
forums-d1df78604b36375ee563edd86af5a4025ee3f6e4.tar.bz2
forums-d1df78604b36375ee563edd86af5a4025ee3f6e4.tar.xz
forums-d1df78604b36375ee563edd86af5a4025ee3f6e4.zip
[ticket/13601] Add core.acl_clear_prefetch_after event
PHPBB3-13601
Diffstat (limited to 'phpBB')
-rw-r--r--phpBB/phpbb/auth/auth.php12
1 files changed, 11 insertions, 1 deletions
diff --git a/phpBB/phpbb/auth/auth.php b/phpBB/phpbb/auth/auth.php
index b7634e04ce..37d4352c10 100644
--- a/phpBB/phpbb/auth/auth.php
+++ b/phpBB/phpbb/auth/auth.php
@@ -514,7 +514,7 @@ class auth
*/
function acl_clear_prefetch($user_id = false)
{
- global $db, $cache;
+ global $db, $cache, $phpbb_dispatcher;
// Rebuild options cache
$cache->destroy('_role_cache');
@@ -553,6 +553,16 @@ class auth
$where_sql";
$db->sql_query($sql);
+ /**
+ * Event is triggered after user(s) permission settings cache has been cleared
+ *
+ * @event core.acl_clear_prefetch_after
+ * @var mixed user_id User ID(s)
+ * @since 3.1.11-RC1
+ */
+ $vars = array('user_id');
+ extract($phpbb_dispatcher->trigger_event('core.acl_clear_prefetch_after', compact($vars)));
+
return;
}