mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 14:18:52 +00:00
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/10880] The m_approve permisson no longer implies f_noapprove. Conflicts: phpBB/posting.php
This commit is contained in:
commit
3fefa5bb13
2 changed files with 6 additions and 4 deletions
|
@ -1695,8 +1695,9 @@ function submit_post($mode, $subject, $username, $topic_type, &$poll, &$data, $u
|
||||||
// The variable name should be $post_approved, because it indicates if the post is approved or not
|
// The variable name should be $post_approved, because it indicates if the post is approved or not
|
||||||
$post_approval = 1;
|
$post_approval = 1;
|
||||||
|
|
||||||
// Check the permissions for post approval. Moderators are not affected.
|
// Check the permissions for post approval.
|
||||||
if (!$auth->acl_get('f_noapprove', $data['forum_id']) && !$auth->acl_get('m_approve', $data['forum_id']))
|
// Moderators must go through post approval like ordinary users.
|
||||||
|
if (!$auth->acl_get('f_noapprove', $data['forum_id']))
|
||||||
{
|
{
|
||||||
// Post not approved, but in queue
|
// Post not approved, but in queue
|
||||||
$post_approval = 0;
|
$post_approval = 0;
|
||||||
|
|
|
@ -1116,8 +1116,9 @@ if ($submit || $preview || $refresh)
|
||||||
$captcha->reset();
|
$captcha->reset();
|
||||||
}
|
}
|
||||||
|
|
||||||
// Check the permissions for post approval. Moderators are not affected.
|
// Check the permissions for post approval.
|
||||||
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']))
|
// Moderators must go through post approval like ordinary users.
|
||||||
|
if ((!$auth->acl_get('f_noapprove', $data['forum_id']) && empty($data['force_approved_state'])) || (isset($data['force_approved_state']) && !$data['force_approved_state']))
|
||||||
{
|
{
|
||||||
meta_refresh(10, $redirect_url);
|
meta_refresh(10, $redirect_url);
|
||||||
$message = ($mode == 'edit') ? $user->lang['POST_EDITED_MOD'] : $user->lang['POST_STORED_MOD'];
|
$message = ($mode == 'edit') ? $user->lang['POST_EDITED_MOD'] : $user->lang['POST_STORED_MOD'];
|
||||||
|
|
Loading…
Add table
Reference in a new issue