aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/content_visibility.php
diff options
context:
space:
mode:
authorJoas Schilling <nickvergessen@gmx.de>2012-10-01 16:25:05 +0200
committerJoas Schilling <nickvergessen@gmx.de>2012-10-01 16:25:05 +0200
commit1943de36f32609b37230da32aa679466043702fe (patch)
tree1882e314e18bafeb4b72da177ad72c823e624e38 /phpBB/includes/content_visibility.php
parente5377e98c7eca8754f423ef495e4b092590f4e03 (diff)
downloadforums-1943de36f32609b37230da32aa679466043702fe.tar
forums-1943de36f32609b37230da32aa679466043702fe.tar.gz
forums-1943de36f32609b37230da32aa679466043702fe.tar.bz2
forums-1943de36f32609b37230da32aa679466043702fe.tar.xz
forums-1943de36f32609b37230da32aa679466043702fe.zip
[feature/soft-delete] Comment out user_posts update for the moment
It should rely on the permissions of the post not the current user. PHPBB3-9657
Diffstat (limited to 'phpBB/includes/content_visibility.php')
-rw-r--r--phpBB/includes/content_visibility.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/content_visibility.php b/phpBB/includes/content_visibility.php
index 165c28f1af..9d2bf34370 100644
--- a/phpBB/includes/content_visibility.php
+++ b/phpBB/includes/content_visibility.php
@@ -346,10 +346,16 @@ class phpbb_content_visibility
set_config_count('num_posts', ($topic_row['topic_replies'] + 1) * (-1), true);
// Only decrement this post, since this is the one non-approved now
+ //
+ /**
+ * @todo: this is wrong, it should rely on post_postcount
+ * also a user might have more than one post in the topic
+ *
if ($auth->acl_get('f_postcount', $forum_id))
{
$sql_data[USERS_TABLE] = 'user_posts = user_posts - 1';
}
+ */
}
/**
@@ -383,10 +389,14 @@ class phpbb_content_visibility
set_config_count('num_posts', -1, true);
+ /**
+ * @todo: this is wrong, it should rely on post_postcount
+ *
if ($auth->acl_get('f_postcount', $forum_id))
{
$sql_data[USERS_TABLE] = 'user_posts = user_posts - 1';
}
+ */
}
/**