[bug] /api/v1/pleroma/admin/reports returns 403 for moderator #463
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#463
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
OTP
Extra details
Ubuntu 22.04
Version
2023.02 (3.6.0-0-g71d0899)
PostgreSQL version
14.6 (Ubuntu 14.6-0ubuntu0.22.04.1)
What were you trying to do?
The frontend requests
/api/v1/pleroma/admin/reports
and I think that should return normally for a user with the moderator role.What did you expect to happen?
The request to return normally.
What actually happened?
The request to
/api/v1/pleroma/admin/reports
returns a 403 error.Logs
Severity
I can manage
Have you searched for this issue?
issue was that i restricted the
admin
scope to be for admins only, forgetting that moderators need to grab it sometimes as well