This commit is contained in:
Mel O'Hagan 2022-11-29 17:23:54 +00:00
parent 08104c918b
commit d484dc6011
1 changed files with 1 additions and 1 deletions

View File

@ -23,7 +23,7 @@ const MAX_USERS_UPLOAD_LIMIT = 1000
export const save = async (ctx: any) => {
try {
const body = ctx.request.body
const body = ctx.request.body
const isCreate = !body._id
const isAdmin = !!ctx.user.admin?.global
if (isCreate && !isAdmin) {