Browse Source

When checks for a new permission are added all over the place...well, it would be nice to add it to ManagePermissions too. Added send_email_to_members... lol

Signed-off-by: emanuele <[email protected]>
emanuele 12 years ago
parent
commit
11f9b8df3b

+ 2 - 0
Sources/ManagePermissions.php

@@ -1119,6 +1119,7 @@ function setPermissionLevel($level, $group, $profile = 'null')
 		'karma_edit',
 		'pm_read',
 		'pm_send',
+		'send_email_to_members',
 		'profile_view_any',
 		'profile_extra_own',
 		'profile_server_avatar',
@@ -1462,6 +1463,7 @@ function loadAllPermissions($loadType = 'classic')
 			'disable_censor' => array(false, 'general', 'disable_censor'),
 			'pm_read' => array(false, 'pm', 'use_pm_system'),
 			'pm_send' => array(false, 'pm', 'use_pm_system'),
+			'send_email_to_members' => array(false, 'pm', 'use_pm_system'),
 			'calendar_view' => array(false, 'calendar', 'view_basic_info'),
 			'calendar_post' => array(false, 'calendar', 'post_calendar'),
 			'calendar_edit' => array(true, 'calendar', 'post_calendar', 'moderate_general'),

+ 2 - 0
Themes/default/languages/ManagePermissions.english.php

@@ -94,6 +94,8 @@ $txt['permissionname_pm_read'] = 'Read personal messages';
 $txt['permissionhelp_pm_read'] = 'This permission allows users to access the Personal Messages section and read their Personal Messages. Without this permission a user is unable to send Personal Messages.';
 $txt['permissionname_pm_send'] = 'Send personal messages';
 $txt['permissionhelp_pm_send'] = 'Send personal messages to other registered members. Requires the \'Read personal messages\' permission.';
+$txt['permissionname_send_email_to_members'] = 'Send emails';
+$txt['permissionhelp_send_email_to_members'] = 'Send emails to other registered members.';
 
 $txt['permissiongroup_calendar'] = 'Calendar';
 $txt['permissionname_calendar_view'] = 'View the calendar';