mirror of
https://github.com/spacebarchat/server.git
synced 2024-11-11 13:14:06 +01:00
Update templates.ts
This commit is contained in:
parent
f2cecdecdc
commit
a53d728104
@ -30,10 +30,10 @@ router.post("/", check(TemplateCreateSchema), async (req: Request, res: Response
|
||||
const user = await UserModel.findOne({ id: req.user_id }).exec();
|
||||
if (!user) throw new HTTPError("User 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);
|
||||
|
||||
const template_id = Snowflake.generate();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user