mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
Fix bug #56555 - Quick reply + posting permission
Authorised by: ToonArmy git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10414 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
f7f3471e3f
commit
f7575b3a0c
2 changed files with 7 additions and 2 deletions
|
@ -131,6 +131,7 @@
|
|||
<li>[Fix] Pagination of User Notes in MCP uses two different config values. (Bug #56025)</li>
|
||||
<li>[Fix] List hidden groups on viewprofile where the viewing user is also a member. (Bug #31845)</li>
|
||||
<li>[Fix] Sort viewprofile group list by group name.</li>
|
||||
<li>[Fix] Correctly determine permissions to show quick reply button. (Bug #56555)</li>
|
||||
<li>[Fix] Do not unsubscribe users from topics replying with quickreply. (Bug #56235)</li>
|
||||
<li>[Fix] Don't submit when pressing enter on preview button. (Bug #54395)</li>
|
||||
<li>[Change] Move redirect into a hidden field to avoid issues with mod_security. (Bug #54145)</li>
|
||||
|
|
|
@ -1678,8 +1678,12 @@ else if (!$all_marked_read)
|
|||
}
|
||||
|
||||
// let's set up quick_reply
|
||||
$s_allowed_reply = ((!$auth->acl_get('f_reply', $forum_id) || ($topic_data['forum_status'] == ITEM_LOCKED) || ($topic_data['topic_status'] == ITEM_LOCKED)) && !$auth->acl_get('m_edit', $forum_id)) ? false : true;
|
||||
$s_quick_reply = $s_allowed_reply && $user->data['is_registered'] && $config['allow_quick_reply'] && ($topic_data['forum_flags'] & FORUM_FLAG_QUICK_REPLY);
|
||||
$s_quick_reply = false;
|
||||
if ($user->data['is_registered'] && $config['allow_quick_reply'] && ($topic_data['forum_flags'] & FORUM_FLAG_QUICK_REPLY) && $auth->acl_get('f_reply', $forum_id))
|
||||
{
|
||||
// Quick reply enabled forum
|
||||
$s_quick_reply = (($topic_data['forum_status'] == ITEM_UNLOCKED && $topic_data['topic_status'] == ITEM_UNLOCKED) || $auth->acl_get('m_edit', $forum_id)) ? true : false;
|
||||
}
|
||||
|
||||
if ($s_can_vote || $s_quick_reply)
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue