summary refs log tree commit diff
diff options
context:
space:
mode:
authorIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-06 22:19:56 +0200
committerIntevel ツ <59223342+Intevel@users.noreply.github.com>2021-05-06 22:19:56 +0200
commit7488f03f829a1994ce7c2abd685b1b4259b3108e (patch)
tree3dbe70a37e4bda3a6e70e6c7b6fa5fca3ab521e7
parent[Route] PATCH /guilds/:id/templates (diff)
downloadserver-7488f03f829a1994ce7c2abd685b1b4259b3108e.tar.xz
Update templates.ts
-rw-r--r--src/routes/guilds/#guild_id/templates.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/routes/guilds/#guild_id/templates.ts b/src/routes/guilds/#guild_id/templates.ts

index 0690f0a4..a380ac2f 100644 --- a/src/routes/guilds/#guild_id/templates.ts +++ b/src/routes/guilds/#guild_id/templates.ts
@@ -117,10 +117,10 @@ router.patch("/:template_id", check(TemplateModifySchema), async (req: Request, const template = await TemplateModel.findById({ _id: template_id }).exec(); if (!template) throw new HTTPError("template not found", 404); - /*const perms = await getPermission(req.user_id, guild_id); + const perms = await getPermission(req.user_id, guild_id); if (!perms.has("MANAGE_GUILD")) - throw new HTTPError("You missing the MANAGE_GUILD permission", 401);*/ + throw new HTTPError("You missing the MANAGE_GUILD permission", 401); var templateobj = await TemplateModel.findByIdAndUpdate({ _id: template_id