Skip to content

Commit 176048b

Browse files
Merge pull request SimpleMachines#8866 from jdarwood007/2.1/fix8839
[2.1] Remove references to post_autosave_draft permission
2 parents e6ea996 + 4a4ce0f commit 176048b

File tree

3 files changed

+1
-3
lines changed

3 files changed

+1
-3
lines changed

Sources/ManagePermissions.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2342,7 +2342,6 @@ function loadIllegalGuestPermissions()
23422342
'poll_edit',
23432343
'poll_lock',
23442344
'poll_remove',
2345-
'post_autosave_draft',
23462345
'post_draft',
23472346
'profile_blurb',
23482347
'profile_displayed_name',

Sources/Post.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1183,7 +1183,7 @@ function($m)
11831183

11841184
// Are post drafts enabled?
11851185
$context['drafts_save'] = !empty($modSettings['drafts_post_enabled']) && allowedTo('post_draft');
1186-
$context['drafts_autosave'] = !empty($context['drafts_save']) && !empty($modSettings['drafts_autosave_enabled']) && allowedTo('post_autosave_draft') && !empty($options['drafts_autosave_enabled']);
1186+
$context['drafts_autosave'] = !empty($context['drafts_save']) && !empty($modSettings['drafts_autosave_enabled']) && !empty($options['drafts_autosave_enabled']);
11871187

11881188
// Build a list of drafts that they can load in to the editor
11891189
if (!empty($context['drafts_save']))

Themes/default/languages/Reports.english.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,6 @@
5757
$txt['board_perms_name_post_unapproved_replies_any'] = 'Post unapproved replies in any topic';
5858
$txt['board_perms_name_post_unapproved_replies_own'] = 'Post unapproved replies in own topic';
5959
$txt['board_perms_name_post_draft'] = 'Save drafts of posts';
60-
$txt['board_perms_name_post_autosave_draft'] = 'Automatically save drafts of posts';
6160
$txt['board_perms_name_remove_any'] = 'Remove any topic';
6261
$txt['board_perms_name_remove_own'] = 'Remove own topics';
6362
$txt['board_perms_name_report_any'] = 'Report any post';

0 commit comments

Comments
 (0)