move strike reasons to admins
All checks were successful
deploy / build-and-deploy (push) Successful in 22s
All checks were successful
deploy / build-and-deploy (push) Successful in 22s
This commit is contained in:
@ -74,7 +74,7 @@ export const report = {
|
||||
weight: z.number()
|
||||
}),
|
||||
handler: async (input, context) => {
|
||||
Session.actionSessionFromCookies(context.cookies, Permissions.Reports);
|
||||
Session.actionSessionFromCookies(context.cookies, Permissions.Admin);
|
||||
|
||||
return await db.addStrikeReason(input);
|
||||
}
|
||||
@ -86,7 +86,7 @@ export const report = {
|
||||
weight: z.number()
|
||||
}),
|
||||
handler: async (input, context) => {
|
||||
Session.actionSessionFromCookies(context.cookies, Permissions.Reports);
|
||||
Session.actionSessionFromCookies(context.cookies, Permissions.Admin);
|
||||
|
||||
await db.editStrikeReason(input);
|
||||
}
|
||||
@ -96,7 +96,7 @@ export const report = {
|
||||
id: z.number()
|
||||
}),
|
||||
handler: async (input, context) => {
|
||||
Session.actionSessionFromCookies(context.cookies, Permissions.Reports);
|
||||
Session.actionSessionFromCookies(context.cookies, Permissions.Admin);
|
||||
|
||||
await db.deleteStrikeReason(input);
|
||||
}
|
||||
|
Reference in New Issue
Block a user