mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 22:28:51 +00:00
#57715 - Correct behavior of "force_approved_state" when value is false.
(Merging r10507 into branches/phpBB-3_0_0) git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10508 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
576722cead
commit
d49806a043
2 changed files with 3 additions and 2 deletions
|
@ -172,6 +172,7 @@
|
|||
<li>[Fix] Small language correction for the FAQ page. (Bug #57825)</li>
|
||||
<li>[Fix] Restrict search for language/../iso.txt to folders. (Bug #57795)</li>
|
||||
<li>[Fix] Make user_email_hash() function independent from system's architecture. (Bug #57755)</li>
|
||||
<li>[Fix] Correct behavior of "force_approved_state" when value is false. (Bug #57715)</li>
|
||||
<li>[Change] Move redirect into a hidden field to avoid issues with mod_security. (Bug #54145)</li>
|
||||
<li>[Change] Log activation through inactive users ACP. (Bug #30145)</li>
|
||||
<li>[Change] Send time of last item instead of current time in ATOM Feeds. (Bug #53305)</li>
|
||||
|
|
|
@ -1113,7 +1113,7 @@ if ($submit || $preview || $refresh)
|
|||
}
|
||||
|
||||
// Check the permissions for post approval. Moderators are not affected.
|
||||
if ((!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id'])) || !empty($post_data['force_approved_state']))
|
||||
if ((!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id']) && empty($data['force_approved_state'])) || (isset($data['force_approved_state']) && !$data['force_approved_state']))
|
||||
{
|
||||
meta_refresh(10, $redirect_url);
|
||||
$message = ($mode == 'edit') ? $user->lang['POST_EDITED_MOD'] : $user->lang['POST_STORED_MOD'];
|
||||
|
|
Loading…
Add table
Reference in a new issue