22 lines
652 B
Markdown
22 lines
652 B
Markdown
# Task: Moderation System
|
|
|
|
## Objective
|
|
|
|
Implement role-based access control and a moderation queue.
|
|
|
|
## Steps
|
|
|
|
- [x] **Roles**:
|
|
- [x] Update `User` model with `role` field (User, Moderator, Admin).
|
|
- [x] Create `RoleChecker` dependency for API routes.
|
|
- [x] **Moderation Queue**:
|
|
- [x] Create API endpoint to list pending items (Nicknames, Reports).
|
|
- [x] Create API endpoint to approve/reject items.
|
|
- [x] **Frontend**:
|
|
- [x] Create "Moderator Dashboard" page.
|
|
- [x] Display pending queue with Approve/Reject actions.
|
|
|
|
## Acceptance Criteria
|
|
|
|
- Only Moderators can access the Dashboard.
|
|
- Moderators can approve/reject pending nicknames.
|