Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.
Sign up[ticket/13598] Allow topic lock on topic creation #3528
Conversation
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
No idea why this is failing on Travis :roll: |
This comment has been minimized.
This comment has been minimized.
You're changing |
This comment has been minimized.
This comment has been minimized.
Yeah, tests confuse me. No idea on how to correct this. |
This comment has been minimized.
This comment has been minimized.
Two possible ways:
I'd go for the first way because of the "backward compatiblity" thing. |
This comment has been minimized.
This comment has been minimized.
Thanks @Elsensee "so they don't throw that SQL error you're currently seeing in travis" I didn't see the SQL error...just some gibberish in a red box which I assumed was the error but it really didn't say much. Ticket updated EDIT: Nevermind I see them now |
PHPBB3-13598
@@ -1758,7 +1764,7 @@ | |||
'S_SIGNATURE_CHECKED' => ($sig_checked) ? ' checked="checked"' : '', | |||
'S_NOTIFY_ALLOWED' => (!$user->data['is_registered'] || ($mode == 'edit' && $user->data['user_id'] != $post_data['poster_id']) || !$config['allow_topic_notify'] || !$config['email_enable']) ? false : true, | |||
'S_NOTIFY_CHECKED' => ($notify_checked) ? ' checked="checked"' : '', | |||
'S_LOCK_TOPIC_ALLOWED' => (($mode == 'edit' || $mode == 'reply' || $mode == 'quote') && ($auth->acl_get('m_lock', $forum_id) || ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && !empty($post_data['topic_poster']) && $user->data['user_id'] == $post_data['topic_poster'] && $post_data['topic_status'] == ITEM_UNLOCKED))) ? true : false, | |||
'S_LOCK_TOPIC_ALLOWED' => (($mode == 'edit' || $mode == 'reply' || $mode == 'quote' || $mode == 'post') && ($auth->acl_get('m_lock', $forum_id) || ($auth->acl_get('f_user_lock', $forum_id) && $user->data['is_registered'] && !empty($post_data['topic_poster']) && $user->data['user_id'] == $post_data['topic_poster'] && $post_data['topic_status'] == ITEM_UNLOCKED))) ? true : false, |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rmcgirr83
Apr 9, 2015
Author
Contributor
None that seem to have to do with posting/replying/etc.. Bump, delete, soft_delete, smilies, popup. Can't see why those would matter though.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
@nickvergessen do we have a consensus that those modes can now be removed? |
This comment has been minimized.
This comment has been minimized.
I guess the PR is fine the way it looks right now. |
This comment has been minimized.
This comment has been minimized.
|
This comment has been minimized.
This comment has been minimized.
|
[ticket/13598] Allow topic lock on topic creation
rmcgirr83 commentedApr 9, 2015
Allow a user, if they have the permission, to lock a topic upon creation of a topic.
PHPBB3-13598