aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/posting.php
diff options
context:
space:
mode:
authorCesar G <prototech91@gmail.com>2013-12-19 17:28:16 -0800
committerCesar G <prototech91@gmail.com>2013-12-19 17:28:16 -0800
commit0a418739a36bdd41932d3ca18c4edcfa6cf44a01 (patch)
treea56dd5d61d6892f023ed3489f37b88f5b3b3b476 /phpBB/posting.php
parente3e34add7f725457b2a6e4809bbfdd6fa576203d (diff)
downloadforums-0a418739a36bdd41932d3ca18c4edcfa6cf44a01.tar
forums-0a418739a36bdd41932d3ca18c4edcfa6cf44a01.tar.gz
forums-0a418739a36bdd41932d3ca18c4edcfa6cf44a01.tar.bz2
forums-0a418739a36bdd41932d3ca18c4edcfa6cf44a01.tar.xz
forums-0a418739a36bdd41932d3ca18c4edcfa6cf44a01.zip
[ticket/12078] Check for f_delete when a user attempts to permanently delete
PHPBB3-12078
Diffstat (limited to 'phpBB/posting.php')
-rw-r--r--phpBB/posting.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/posting.php b/phpBB/posting.php
index 0d2cff40bc..7a58aa9c72 100644
--- a/phpBB/posting.php
+++ b/phpBB/posting.php
@@ -42,7 +42,7 @@ $refresh = (isset($_POST['add_file']) || isset($_POST['delete_file']) || isset($
$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 ($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';
}