1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-08-06 00:37:42 +02:00

[ticket/11582] Add new service for permissions

Replace calls to the language-array type with a call to get_types()

PHPBB3-11582
This commit is contained in:
Joas Schilling
2013-06-28 10:52:13 +02:00
parent 3d9e57d0ce
commit 573987d2d2
4 changed files with 280 additions and 13 deletions

View File

@@ -82,16 +82,12 @@ $lang = array_merge($lang, array(
'user_group' => 'Users & Groups',
),
// With defining 'global' here we are able to specify what is printed out if the permission is within the global scope.
'permission_type' => array(
'u_' => 'User permissions',
'a_' => 'Admin permissions',
'm_' => 'Moderator permissions',
'f_' => 'Forum permissions',
'global' => array(
'm_' => 'Global moderator permissions',
),
),
'ACL_TYPE_USER' => 'User permissions',
'ACL_TYPE_ADMIN' => 'Admin permissions',
'ACL_TYPE_MODERATOR' => 'Moderator permissions',
'ACL_TYPE_FORUM' => 'Forum permissions',
'ACL_TYPE_GLOBAL_MODERATOR' => 'Global moderator permissions',
));
// User Permissions