Zeile 1803 | Zeile 1803 |
---|
}
// Assign any uploaded attachments with the specific posthash to the newly created post.
|
}
// Assign any uploaded attachments with the specific posthash to the newly created post.
|
if($thread['posthash'])
| if(!empty($thread['posthash']))
|
{ $thread['posthash'] = $db->escape_string($thread['posthash']); $attachmentassign = array(
| { $thread['posthash'] = $db->escape_string($thread['posthash']); $attachmentassign = array(
|
Zeile 1884 | Zeile 1884 |
---|
// Decide on the visibility of this post. $ismod = is_moderator($post['fid'], "", $uid);
|
// Decide on the visibility of this post. $ismod = is_moderator($post['fid'], "", $uid);
|
| $editor_ismod = is_moderator($post['fid'], "", $mybb->user['uid']);
|
// Keep visibility for unapproved and deleted posts
|
// Keep visibility for unapproved and deleted posts
|
if($existing_post['visible'] == 0)
| if($existing_post['visible'] == 0 && !$editor_ismod)
|
{ $visible = 0; }
| { $visible = 0; }
|
Zeile 1894 | Zeile 1895 |
---|
{ $visible = -1; }
|
{ $visible = -1; }
|
elseif($forumpermissions['mod_edit_posts'] == 1 && !$ismod)
| elseif($forumpermissions['mod_edit_posts'] == 1 && !$ismod && !$editor_ismod)
|
{ $visible = 0; require_once MYBB_ROOT."inc/class_moderation.php";
| { $visible = 0; require_once MYBB_ROOT."inc/class_moderation.php";
|