Allow wall mods to file hiatuses
This commit is contained in:
@ -32,8 +32,8 @@ export default function (
|
||||
if (typeof hiatus !== "undefined" && typeof hiatus !== "boolean")
|
||||
return jsonError("Invalid notice", 400);
|
||||
|
||||
if (!selectedDepartments.includes("DM") && hiatus)
|
||||
return jsonError("Only discord mods can file hiatuses", 400);
|
||||
if (!["DM", "WM"].find((d) => selectedDepartments.includes(d)) && hiatus)
|
||||
return jsonError("Only discord and wall mods can file hiatuses", 400);
|
||||
|
||||
if (
|
||||
isNaN(endDate.getFullYear()) ||
|
||||
|
Reference in New Issue
Block a user