Skip to content

Commit

Permalink
Merge branch '3.2.x'
Browse files Browse the repository at this point in the history
* 3.2.x:
  [ticket/13601] Add core.acl_clear_prefetch_after event
  • Loading branch information
Nicofuma committed Feb 5, 2017
2 parents 608cf8a + 4eb72a4 commit 95ad20c
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion phpBB/phpbb/auth/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -514,7 +514,7 @@ function build_bitstring(&$hold_ary)
*/
function acl_clear_prefetch($user_id = false)
{
global $db, $cache;
global $db, $cache, $phpbb_dispatcher;

// Rebuild options cache
$cache->destroy('_role_cache');
Expand Down Expand Up @@ -553,6 +553,16 @@ function acl_clear_prefetch($user_id = false)
$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;
}

Expand Down

0 comments on commit 95ad20c

Please sign in to comment.