mirror of
https://github.com/phpbb/phpbb.git
synced 2025-08-05 08:17:47 +02:00
fix r10076 for #48615 - Ability to specify amount of time user is able to delete his last post in topic.
Authorised by: AcydBurn git-svn-id: file:///svn/phpbb/branches/phpBB-3_0_0@10080 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -1476,7 +1476,8 @@ for ($i = 0, $end = sizeof($post_list); $i < $end; ++$i)
|
||||
$user->data['user_id'] == $poster_id &&
|
||||
$auth->acl_get('f_delete', $forum_id) &&
|
||||
$topic_data['topic_last_post_id'] == $row['post_id'] &&
|
||||
// we do not want to allowe removal of the last post if a moderator locked it!
|
||||
($row['post_time'] > time() - ($config['delete_time'] * 60) || !$config['delete_time']) &&
|
||||
// we do not want to allow removal of the last post if a moderator locked it!
|
||||
!$row['post_edit_locked']
|
||||
)));
|
||||
|
||||
|
Reference in New Issue
Block a user