* Guests do not need permission to edit their posts

This commit is contained in:
Visman 2018-11-05 18:54:13 +07:00
parent 420f9e6191
commit c3fbf44502

View file

@ -124,7 +124,7 @@ trait PostFormTrait
'checked' => isset($vars['merge_post']) ? (bool) $vars['merge_post'] : true,
];
}
if ($editPost) {
if ($editPost && ! $model->user->isGuest) {
$fieldset['edit_post'] = [
'type' => 'checkbox',
'label' => \ForkBB\__('EditPost edit'),