mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
[ticket/13264] Do not force approved state if post visibility is known
Post visibility is used if it is set to a valid value. PHPBB3-13264
This commit is contained in:
parent
f55a61d067
commit
d461ee4f5c
1 changed files with 4 additions and 0 deletions
|
@ -1636,6 +1636,10 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (isset($data['post_visibility']) && $data['post_visibility'] !== false)
|
||||||
|
{
|
||||||
|
$post_visibility = $data['post_visibility'];
|
||||||
|
}
|
||||||
|
|
||||||
// MODs/Extensions are able to force any visibility on posts
|
// MODs/Extensions are able to force any visibility on posts
|
||||||
if (isset($data['force_approved_state']))
|
if (isset($data['force_approved_state']))
|
||||||
|
|
Loading…
Add table
Reference in a new issue