Skip to content

Commit

Permalink
fix(review): allow rr creation by users of the site (#556)
Browse files Browse the repository at this point in the history
  • Loading branch information
seaerchin authored Nov 7, 2022
1 parent a4b68c3 commit 9bd282e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/routes/v2/authenticated/review.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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!",
})
}

Expand Down

0 comments on commit 9bd282e

Please sign in to comment.