Skip to content

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

Merged
sliang-code merged 7 commits into
mainfrom
feat/backend_verify_privilege_design
Mar 1, 2026
Merged

Feat: implement post verification system and admin privilege delegation#43
sliang-code merged 7 commits into
mainfrom
feat/backend_verify_privilege_design

Conversation

@sliang-code
Copy link
Copy Markdown

@sliang-code sliang-code commented Feb 28, 2026

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

  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: (Not fully implemented)
    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: (Not fully implemented)
    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.

@sliang-code sliang-code self-assigned this Feb 28, 2026
@sliang-code
Copy link
Copy Markdown
Author

image

Permission test from an signed in admin account

Copy link
Copy Markdown
Author

@sliang-code sliang-code left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The front-end is not complete and only back-end privilege control is ready for this PR.

@sliang-code sliang-code merged commit 1b5d9c6 into main Mar 1, 2026
1 check passed
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.

1 participant