mirror of
https://github.com/phpbb/phpbb.git
synced 2025-02-24 03:54:10 +01:00
[ticket/13141] Implement core.mcp_global_f_read_auth_after
PHPBB3-13141
This commit is contained in:
parent
ba2c40cde9
commit
203f9c24d4
@ -136,6 +136,19 @@ if ($forum_id && !$auth->acl_get('f_read', $forum_id))
|
||||
{
|
||||
trigger_error('NOT_AUTHORISED');
|
||||
}
|
||||
/**
|
||||
* Allow applying additional permissions to MCP access besides f_read
|
||||
*
|
||||
* @event core.mcp_global_f_read_auth_after
|
||||
* @var string topic_id The topic the user tried to access
|
||||
* @var array forum_id The forum the user tried to access
|
||||
* @since 3.1.0-RC5
|
||||
*/
|
||||
$vars = array(
|
||||
'topic_id',
|
||||
'forum_id',
|
||||
);
|
||||
extract($phpbb_dispatcher->trigger_event('core.mcp_global_f_read_auth_after', compact($vars)));
|
||||
|
||||
if ($forum_id)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user