mirror of
https://github.com/phpbb/phpbb.git
synced 2025-04-04 16:06:00 +02:00
[ticket/16430] Ensure permissions are defined
PHPBB3-16430
This commit is contained in:
parent
dbdbf23bea
commit
6326b6b631
@ -1136,13 +1136,10 @@ class auth_admin extends \phpbb\auth\auth
|
||||
|
||||
$order = array_flip(array_keys($phpbb_permissions->get_permissions()));
|
||||
|
||||
$category_array = array_filter($category_array, [$phpbb_permissions, 'permission_defined'], ARRAY_FILTER_USE_KEY);
|
||||
|
||||
foreach ($category_array as $cat => $cat_array)
|
||||
{
|
||||
if (!$phpbb_permissions->category_defined($cat))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
$template->assign_block_vars($tpl_cat, array(
|
||||
'S_YES' => ($cat_array['S_YES'] && !$cat_array['S_NEVER'] && !$cat_array['S_NO']) ? true : false,
|
||||
'S_NEVER' => ($cat_array['S_NEVER'] && !$cat_array['S_YES'] && !$cat_array['S_NO']) ? true : false,
|
||||
|
Loading…
x
Reference in New Issue
Block a user