From e1f10fb7122cf2737b969a361f72848b92a82c16 Mon Sep 17 00:00:00 2001 From: ingawei Date: Wed, 14 Sep 2022 16:49:50 -0700 Subject: [PATCH] eh email? --- functions/src/resolve-market.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/src/resolve-market.ts b/functions/src/resolve-market.ts index b6bdfdd1..f2a65ee3 100644 --- a/functions/src/resolve-market.ts +++ b/functions/src/resolve-market.ts @@ -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')