Fixed account lookup.
This commit is contained in:
@@ -56,7 +56,7 @@ export async function allowQuery(req, type) {
|
|||||||
} else if (type === TYPE_ACCOUNT) {
|
} else if (type === TYPE_ACCOUNT) {
|
||||||
const account = await getAccount({ accountUuid: id });
|
const account = await getAccount({ accountUuid: id });
|
||||||
|
|
||||||
return account && account.id === id;
|
return account && account.accountUuid === id;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user