Uploaded image for project: 'phpBB3'
  1. phpBB3
  2. PHPBB3-9674

Post Count Discrepancy with certain permissions

    XMLWordPrintable

Details

    • Bug
    • Status: Closed (View Workflow)
    • Trivial
    • Resolution: Cannot Reproduce
    • 3.1.0-dev
    • None
    • Posting
    • 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."

      Attachments

        Activity

          People

            Marc Marc
            A_Jelly_Doughnut A_Jelly_Doughnut
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: