fix: open graph tags for production (uffa)
This commit is contained in:
+1
-1
@@ -179,7 +179,7 @@ export async function createApiRouter() {
|
||||
}
|
||||
|
||||
// uno studente può modificare solo il campo "content"
|
||||
if (user.role === 'moderator' && !validateObjectKeys<keyof ProblemModel>(req.body, ['content'])) {
|
||||
if (user.role === 'moderator' && !validateObjectKeys<keyof ProblemModel>(req.body, ['title', 'content'])) {
|
||||
res.status(StatusCodes.UNAUTHORIZED)
|
||||
res.send(`a moderator can only modify the field "content"`)
|
||||
return
|
||||
|
||||
Reference in New Issue
Block a user