mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13141] Adding more variables to the event
Adding action, forum_id, mode, module and quickmod to core.mcp_global_f_read_auth_after PHPBB3-13141
This commit is contained in:
parent
1fc7bd107d
commit
88798b3514
1 changed files with 11 additions and 3 deletions
|
@ -140,13 +140,21 @@ if ($forum_id && !$auth->acl_get('f_read', $forum_id))
|
||||||
* Allow applying additional permissions to MCP access besides f_read
|
* Allow applying additional permissions to MCP access besides f_read
|
||||||
*
|
*
|
||||||
* @event core.mcp_global_f_read_auth_after
|
* @event core.mcp_global_f_read_auth_after
|
||||||
* @var string topic_id The topic the user tried to access
|
* @var string action The action the user tried to execute
|
||||||
* @var array forum_id The forum the user tried to access
|
* @var int forum_id The forum the user tried to access
|
||||||
|
* @var string mode The MCP module the user is trying to access
|
||||||
|
* @var p_master module Module system class
|
||||||
|
* @var bool quickmod True if the user is accessing using quickmod tools
|
||||||
|
* @var int topic_id The topic the user tried to access
|
||||||
* @since 3.1.1-RC1
|
* @since 3.1.1-RC1
|
||||||
*/
|
*/
|
||||||
$vars = array(
|
$vars = array(
|
||||||
'topic_id',
|
'action',
|
||||||
'forum_id',
|
'forum_id',
|
||||||
|
'mode',
|
||||||
|
'module',
|
||||||
|
'quickmod',
|
||||||
|
'topic_id',
|
||||||
);
|
);
|
||||||
extract($phpbb_dispatcher->trigger_event('core.mcp_global_f_read_auth_after', compact($vars)));
|
extract($phpbb_dispatcher->trigger_event('core.mcp_global_f_read_auth_after', compact($vars)));
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue