mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/12078] Check for f_delete when a user attempts to permanently delete
PHPBB3-12078
This commit is contained in:
parent
e3e34add7f
commit
0a418739a3
1 changed files with 1 additions and 1 deletions
|
@ -42,7 +42,7 @@ $refresh = (isset($_POST['add_file']) || isset($_POST['delete_file']) || isset($
|
||||||
$mode = request_var('mode', '');
|
$mode = request_var('mode', '');
|
||||||
|
|
||||||
// If the user is not allowed to delete the post, we try to soft delete it, so we overwrite the mode here.
|
// If the user is not allowed to delete the post, we try to soft delete it, so we overwrite the mode here.
|
||||||
if ($mode == 'delete' && (($confirm && !$request->is_set_post('delete_permanent')) || !$auth->acl_get('m_delete', $forum_id)))
|
if ($mode == 'delete' && (($confirm && !$request->is_set_post('delete_permanent')) || !$auth->acl_gets('f_delete', 'm_delete', $forum_id)))
|
||||||
{
|
{
|
||||||
$mode = 'soft_delete';
|
$mode = 'soft_delete';
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue