Merge branch 'master' of https://github.com/MeowcaTheoRange/TrollCallAPIs
This commit is contained in:
commit
276d85dfdb
1 changed files with 1 additions and 0 deletions
|
@ -46,6 +46,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