feat: add canOperateReports and canFlagReportContent functions for report management

This commit is contained in:
gabdevele
2026-06-14 21:49:53 +02:00 Unverified
parent ca09e7b6c8
commit cb922baa46
7 changed files with 38 additions and 20 deletions
+3 -3
View File
@@ -3056,7 +3056,7 @@
},
"/api/v1/reports/{id}/flags": {
"post": {
"description": "Creates a moderation flag for a report.",
"description": "Creates a moderation flag for a report by assigned operator only.",
"operationId": "ReportController.flagReport",
"parameters": [
{
@@ -3313,7 +3313,7 @@
},
"/api/v1/reports/{id}/messages/{message_id}/flags": {
"post": {
"description": "Creates a moderation flag for a report message.",
"description": "Creates a moderation flag for a report message by assigned operator only.",
"operationId": "ReportController.flagMessage",
"parameters": [
{
@@ -3436,7 +3436,7 @@
},
"/api/v1/reports/{id}/take": {
"post": {
"description": "Assigns an open report to the current operator.",
"description": "Assigns an open report to current non-admin operator.",
"operationId": "ReportController.takeReport",
"parameters": [
{