diff --git a/backend/src/api/routes/quotes.ts b/backend/src/api/routes/quotes.ts index 70204d232..465d90d71 100644 --- a/backend/src/api/routes/quotes.ts +++ b/backend/src/api/routes/quotes.ts @@ -151,7 +151,7 @@ router.post( }), checkUserPermissions({ criteria: (user) => { - return !user.cannotReport; + return user.canReport !== false; }, }), asyncHandler(QuoteController.reportQuote) diff --git a/backend/src/api/routes/users.ts b/backend/src/api/routes/users.ts index d5f1dac7c..790e05b55 100644 --- a/backend/src/api/routes/users.ts +++ b/backend/src/api/routes/users.ts @@ -585,7 +585,7 @@ router.post( }), checkUserPermissions({ criteria: (user) => { - return !user.cannotReport; + return user.canReport !== false; }, }), asyncHandler(UserController.reportUser) diff --git a/backend/src/types/types.d.ts b/backend/src/types/types.d.ts index e4bac68e6..9489b59f9 100644 --- a/backend/src/types/types.d.ts +++ b/backend/src/types/types.d.ts @@ -176,7 +176,7 @@ declare namespace MonkeyTypes { uid: string; quoteMod?: boolean; configurationMod?: boolean; - cannotReport?: boolean; + canReport?: boolean; banned?: boolean; canManageApeKeys?: boolean; favoriteQuotes?: Record;