Skip to content

Feat: implement post verification system and admin privilege delegation#42

Closed
sliang-code wants to merge 2 commits into
mainfrom
feat/verify_posts_privilege+button+tag
Closed

Feat: implement post verification system and admin privilege delegation#42
sliang-code wants to merge 2 commits into
mainfrom
feat/verify_posts_privilege+button+tag

Conversation

@sliang-code
Copy link
Copy Markdown

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

  1. Permissions & Delegation:

Added a new verify-post privilege.

Implemented logic allowing Admins or Assigned Admins to grant/revoke the verify-post privilege to any user.

  1. Toolbar & Button:

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.

  1. UI -- Tag:

Added a "Verified Post" tag/badge that appears on posts once they have been successfully verified.

How to Test

  1. Log in as an Admin and grant the verify-post privilege to a standard user.

  2. Log in as that standard user and navigate to a post.

  3. Verify the "Verify Post" button appears in the toolbar.

  4. Click the button and confirm the "Verified Post" tag appears on the post.

  5. Ensure a user without the privilege cannot see the button.

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.
@sliang-code sliang-code self-assigned this Feb 28, 2026
@eseudieu
Copy link
Copy Markdown

Seems you are still failing the lint checks from before. If you pull changes from #34 it should be fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants