diff --git a/lib/auth.js b/lib/auth.js index 3dce58693d..2ee7ee4396 100644 --- a/lib/auth.js +++ b/lib/auth.js @@ -55,7 +55,7 @@ export async function allowQuery(req, type) { } else if (type === TYPE_ACCOUNT) { const account = await getAccount({ accountUuid: id }); - return account && account.id === id; + return account && account.accountUuid === id; } }