diff options
author | Zoddo <zoddo.ino@gmail.com> | 2015-07-15 21:32:40 +0200 |
---|---|---|
committer | Zoddo <zoddo.ino@gmail.com> | 2015-08-28 18:43:59 +0200 |
commit | 11b2bffa8e41a37b778019d0aee4041f72f8c0a0 (patch) | |
tree | 5d9c308dffca3b0925f1160ce5950041157e815c /phpBB/includes/acp | |
parent | bfbce5a1b0b2e22ea2027d82d87c8bc32917a5b2 (diff) | |
download | forums-11b2bffa8e41a37b778019d0aee4041f72f8c0a0.tar forums-11b2bffa8e41a37b778019d0aee4041f72f8c0a0.tar.gz forums-11b2bffa8e41a37b778019d0aee4041f72f8c0a0.tar.bz2 forums-11b2bffa8e41a37b778019d0aee4041f72f8c0a0.tar.xz forums-11b2bffa8e41a37b778019d0aee4041f72f8c0a0.zip |
[ticket/13950] Hide undefined permissions
This hides the permissions of the disabled extensions
PHPBB3-13950
Diffstat (limited to 'phpBB/includes/acp')
-rw-r--r-- | phpBB/includes/acp/auth.php | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/phpBB/includes/acp/auth.php b/phpBB/includes/acp/auth.php index 905e981cdc..6c13a6694c 100644 --- a/phpBB/includes/acp/auth.php +++ b/phpBB/includes/acp/auth.php @@ -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( |