Details
-
Bug
-
Status: Closed (View Workflow)
-
Trivial
-
Resolution: Cannot Reproduce
-
3.1.0-dev
-
None
-
None
Description
In the following permissions situation:
(a) a user posts a post, and does not have the f_postcount permission
(b) a moderator edits that post (having the f_postcount perm and also being on the moderator queue himself)
The user's post count will be decremented upon editing the post, and it will not be incremented when the post is re-approved. This causes the user's post count to be artificially low.
The problem lies in submit_post(), which is used for editing as well as the initial post. It directly references the $auth object belonging to the logged in user (and not the original poster).
There might be other similar configurations of permissions which could make this ticket more important than "Trivial."