Просмотр исходного кода

Changes on ManageSettings

Signed-off-by: Suki <[email protected]>
Suki 10 лет назад
Родитель
Сommit
6eef0e03e5
1 измененных файлов с 17 добавлено и 0 удалено
  1. 17 0
      Sources/ManagePermissions.php

+ 17 - 0
Sources/ManagePermissions.php

@@ -1125,6 +1125,10 @@ function setPermissionLevel($level, $group, $profile = 'null')
 		'send_email_to_members',
 		'profile_view_any',
 		'profile_extra_own',
+		'profile_signature_own',
+		'profile_forum_own',
+		'profile_other_own',
+		'profile_password_own',
 		'profile_server_avatar',
 		'profile_upload_avatar',
 		'profile_remote_avatar',
@@ -1178,6 +1182,10 @@ function setPermissionLevel($level, $group, $profile = 'null')
 		'calendar_edit_any',
 		'profile_identity_any',
 		'profile_extra_any',
+		'profile_signature_any',
+		'profile_forum_own',
+		'profile_other_any',
+		'profile_password_any',
 		'profile_title_any',
 	));
 	$groupLevels['board']['maintenance'] = array_merge($groupLevels['board']['moderator'], array(
@@ -1484,8 +1492,13 @@ function loadAllPermissions($loadType = 'classic')
 			'issue_warning' => array(false, 'member_admin', 'moderate_general'),
 			'profile_view' => array(true, 'profile', 'view_basic_info', 'view_basic_info'),
 			'profile_identity' => array(true, 'profile', 'edit_profile', 'moderate_general'),
+			'profile_forum' => array(true, 'profile', 'edit_profile', 'moderate_general'),
+			'profile_password' => array(true, 'profile', 'edit_profile', 'moderate_general'),
 			'profile_extra' => array(true, 'profile', 'edit_profile', 'moderate_general'),
+			'profile_signature' => array(true, 'profile', 'edit_profile', 'moderate_general'),
+			'profile_other' => array(true, 'profile', 'edit_profile', 'moderate_general'),
 			'profile_title' => array(true, 'profile', 'edit_profile', 'moderate_general'),
+			'profile_blurb' => array(true, 'profile', 'edit_profile', 'moderate_general'),
 			'profile_remove' => array(true, 'profile', 'delete_account', 'moderate_general'),
 			'profile_server_avatar' => array(false, 'profile', 'use_avatar'),
 			'profile_upload_avatar' => array(false, 'profile', 'use_avatar'),
@@ -2231,6 +2244,10 @@ function loadIllegalGuestPermissions()
 		'pm_send',
 		'profile_identity',
 		'profile_extra',
+		'profile_signature',
+		'profile_forum_own',
+		'profile_other',
+		'profile_password',
 		'profile_title',
 		'profile_remove',
 		'profile_server_avatar',