eh email?

This commit is contained in:
ingawei 2022-09-14 16:49:50 -07:00
parent c3210f2f5c
commit e1f10fb712

View File

@ -83,7 +83,7 @@ export const resolvemarket = newEndpoint(opts, async (req, auth) => {
req.body
)
if (creatorId !== auth.uid && !isManifoldId(auth.uid) && !isAdmin())
if (creatorId !== auth.uid && !isManifoldId(auth.uid) && !isAdmin(user.email))
throw new APIError(403, 'User is not creator of contract')
if (contract.resolution) throw new APIError(400, 'Contract already resolved')