mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-31 22:10:45 +02: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:
@@ -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']))
|
||||||
|
Reference in New Issue
Block a user