Feat: implement post verification system and admin privilege delegation#42
Closed
sliang-code wants to merge 2 commits into
Closed
Feat: implement post verification system and admin privilege delegation#42sliang-code wants to merge 2 commits into
sliang-code wants to merge 2 commits into
Conversation
Permissions: Assigned verify-post privilege to the Admin group in the backend. UI/Tools: Added a "Verify Post" button to the post toolbar, visible only to authorized admins and users authorized by admins. Display: Implemented "Admin Verified" tag logic to display on posts once verified. Logic: Added toggle functionality for administrators to verify/unverify content.
|
Seems you are still failing the lint checks from before. If you pull changes from #34 it should be fixed. |
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
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.