mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-09 21:08:53 +00:00
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
This commit is contained in:
commit
c3896c8b5d
1 changed files with 11 additions and 1 deletions
|
@ -514,7 +514,7 @@ class auth
|
||||||
*/
|
*/
|
||||||
function acl_clear_prefetch($user_id = false)
|
function acl_clear_prefetch($user_id = false)
|
||||||
{
|
{
|
||||||
global $db, $cache;
|
global $db, $cache, $phpbb_dispatcher;
|
||||||
|
|
||||||
// Rebuild options cache
|
// Rebuild options cache
|
||||||
$cache->destroy('_role_cache');
|
$cache->destroy('_role_cache');
|
||||||
|
@ -553,6 +553,16 @@ class auth
|
||||||
$where_sql";
|
$where_sql";
|
||||||
$db->sql_query($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;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue