AletheiaFact / AletheiaFact/aletheia

Bug: Restrict verification-request access to staff

Open Beginner friendly
#2,483 0 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
TypeScript
Stars
55
Forks
20
Avg merge
2d 6h
Merged PRs (30d)
2

Description

### Background Information
The `verification-request` route/feature is currently accessible to unauthorized users. Access should be restricted to staff members only.

### Steps to Reproduce
1. Authenticate as a regular (non-staff) user
2. Attempt to access the `verification-request` endpoint or page
3. Observe that access is incorrectly granted

### How
Add a permission check (guard/middleware) to ensure only users with a staff role can access `verification-request` resources.

### Expected Behavior
Non-staff users should receive a `403 Forbidden` error when attempting to access `verification-request`.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by locating the `verification-request` route or page and inspect nearby permission guards or middleware. Reproduce the access with a regular user, then verify that staff users retain access while non-staff users receive a `403 Forbidden` response.

Written by the indexing model from the issue text.

Assessment

Tech stack
nodejs, typescript
Domain
authorization, backend-api-design, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
68/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.