mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-10 18:54:08 +02:00
[ticket/12518] Apply De Morgan to make the conditions easier to read
PHPBB3-12518
This commit is contained in:
@@ -384,7 +384,7 @@ if ($mode == 'edit' && !$auth->acl_get('m_edit', $forum_id))
|
||||
$force_edit_allowed = false;
|
||||
|
||||
$s_cannot_edit = $user->data['user_id'] != $post_data['poster_id'];
|
||||
$s_cannot_edit_time = !($post_data['post_time'] > time() - ($config['edit_time'] * 60) || !$config['edit_time']);
|
||||
$s_cannot_edit_time = $config['edit_time'] && $post_data['post_time'] <= time() - ($config['edit_time'] * 60);
|
||||
$s_cannot_edit_locked = $post_data['post_edit_locked'];
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user