Update index.ts
This commit is contained in:
parent
b3d1a530b6
commit
be730c10e5
1 changed files with 1 additions and 0 deletions
|
@ -47,6 +47,7 @@ export default async function handler(
|
||||||
name: query.user
|
name: query.user
|
||||||
});
|
});
|
||||||
if (checkUser == null) return res.status(404).end();
|
if (checkUser == null) return res.status(404).end();
|
||||||
|
// Make sure to reverse methods so that way other owners can edit this troll
|
||||||
if (!compareCredentials(checkUser, cookies)) {
|
if (!compareCredentials(checkUser, cookies)) {
|
||||||
const thisUser = await getSingleUser({
|
const thisUser = await getSingleUser({
|
||||||
name: cookies.TROLLCALL_NAME
|
name: cookies.TROLLCALL_NAME
|
||||||
|
|
Loading…
Reference in a new issue