[HOTFIX] Auth Credential Failure check
This commit is contained in:
parent
40f020d27b
commit
626ebf9d1d
2 changed files with 23 additions and 5 deletions
|
@ -16,7 +16,10 @@ const getMclName = (host, id) =>
|
|||
`${host.toLowerCase().replaceAll(".", "-")}-${id}`;
|
||||
|
||||
export async function checkAuthorization(serverId, cairoId) {
|
||||
if(!cairoId) return false;
|
||||
console.log(
|
||||
`Checking Authorization for user ${cairoId} for serverId ${serverId}`,
|
||||
);
|
||||
if (!cairoId) return false;
|
||||
const q = selectWhereAllQuery(table, {
|
||||
id: serverId,
|
||||
owner_cairo_id: cairoId,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue