From 26346125b7268c4d0aca99cc6882be74bc1d034a Mon Sep 17 00:00:00 2001 From: seaerchin Date: Fri, 4 Nov 2022 13:32:24 +0800 Subject: [PATCH] fix(review): allow rr creation by users of the site --- src/routes/v2/authenticated/review.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/routes/v2/authenticated/review.ts b/src/routes/v2/authenticated/review.ts index b63df9b52..6411433e2 100644 --- a/src/routes/v2/authenticated/review.ts +++ b/src/routes/v2/authenticated/review.ts @@ -117,7 +117,7 @@ export class ReviewsRouter { userWithSiteSessionData.isomerUserId ) - if (!role || role !== CollaboratorRoles.Admin) { + if (!role) { logger.error({ message: "User attempted to create review request with invalid permissions", @@ -129,7 +129,7 @@ export class ReviewsRouter { }, }) return res.status(404).send({ - message: "Only admins can request reviews!", + message: "Only site members can request reviews!", }) }