mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/13950] Hide undefined permissions
This hides the permissions of the disabled extensions PHPBB3-13950
This commit is contained in:
@@ -1139,6 +1139,11 @@ class auth_admin extends \phpbb\auth\auth
|
||||
@reset($cat_array['permissions']);
|
||||
while (list($permission, $allowed) = each($cat_array['permissions']))
|
||||
{
|
||||
if (!$phpbb_permissions->permission_defined($permission))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
if ($s_view)
|
||||
{
|
||||
$template->assign_block_vars($tpl_cat . '.' . $tpl_mask, array(
|
||||
|
Reference in New Issue
Block a user