In phpBB 3.0.X when MODs added a module for their settings to the Admin/User/Moderator Control Panel, a module/auth variable such as
'auth' => 'acl_a_board'
was typically used. These were usually set in acp info files (and sometimes in the database install scripts).In phpBB 3.1, because Extensions can be disabled, they now set and use their own unique module/auth variable as well.
You should now use something like:
'auth' => 'ext_vendor/foobar'
for an extension located at ext/vendor/foobar
in your ACP module's info files (and migration files if necessary).Example of an ACP foobar_info.php file:
Code: Select all
class foobar_info
{
function module()
{
return array(
'filename' => '\vendor\foobar\acp\foobar_module',
'title' => 'ACP_FOOBAR',
'modes' => array(
'view' => array(
'title' => 'ACP_FOOBAR',
'auth' => 'ext_vendor/foobar && acl_a_board',
'cat' => array('ACP_CAT_DATABASE')
),
),
);
}
}
Code: Select all
public function update_data()
{
return array(
array('module.add', array(
'acp',
'ACP_CAT_DATABASE',
array(
'module_basename' => '\vendor\foobar\acp\foobar_module',
'module_langname' => 'ACP_FOOBAR',
'module_mode' => 'view',
'module_auth' => 'ext_vendor/foobar && acl_a_board',
)
)),
);
}