Feat: implement post verification system and admin privilege delegation#43
Merged
Merged
Conversation
Author
sliang-code
commented
Mar 1, 2026
Author
sliang-code
left a comment
There was a problem hiding this comment.
The front-end is not complete and only back-end privilege control is ready for this PR.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

Description
Fix #42
This PR introduces a new "Post Verification" workflow. It allows admins to delegate verification authority to other users and provides a UI for those authorized users to mark posts as verified.
Key Changes
Added a new verify-post privilege.
Implemented logic allowing Admins or Assigned Admins to grant/revoke the verify-post privilege to any user.
Added a "Verify Post" button to the post toolbar, visible only to users with the required privilege.
Implemented the backend action to toggle the verification status of a post.
Added a "Verified Post" tag/badge that appears on posts once they have been successfully verified.
How to Test
Log in as an Admin and grant the verify-post privilege to a standard user.
Log in as that standard user and navigate to a post.
Verify the "Verify Post" button appears in the toolbar.
Click the button and confirm the "Verified Post" tag appears on the post.
Ensure a user without the privilege cannot see the button.