aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/phpbb
diff options
context:
space:
mode:
authorTristan Darricau <github@nicofuma.fr>2017-02-05 18:05:53 +0100
committerTristan Darricau <github@nicofuma.fr>2017-02-05 18:05:53 +0100
commitc3896c8b5d56375df91f9357bc6f8eb22bfbebbb (patch)
treee9a433b1208134bc1d837a27e42f881e1f754a05 /phpBB/phpbb
parentc00647927493115571be06f6fca30bc8bdd9f85e (diff)
parentd1df78604b36375ee563edd86af5a4025ee3f6e4 (diff)
downloadforums-c3896c8b5d56375df91f9357bc6f8eb22bfbebbb.tar
forums-c3896c8b5d56375df91f9357bc6f8eb22bfbebbb.tar.gz
forums-c3896c8b5d56375df91f9357bc6f8eb22bfbebbb.tar.bz2
forums-c3896c8b5d56375df91f9357bc6f8eb22bfbebbb.tar.xz
forums-c3896c8b5d56375df91f9357bc6f8eb22bfbebbb.zip
Merge pull request #4673 from senky/ticket/13601
[ticket/13601] Add core.acl_clear_prefetch_after event * senky/ticket/13601: [ticket/13601] Add core.acl_clear_prefetch_after event
Diffstat (limited to 'phpBB/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;
}