Add inactivity prefix to fetch by id

This commit is contained in:
regalijan 2023-10-19 16:50:21 -04:00
parent 1adda617cd
commit 17bca653cf
Signed by: regalijan
GPG Key ID: 5D4196DA269EF520

View File

@ -6,11 +6,15 @@ export async function onRequestGet(context: RequestContext) {
},
gma: {
permissions: [1 << 5],
prefix: `gameappeal_`,
prefix: "gameappeal_",
},
inactivity: {
permissions: [1 << 0, 1 << 4, 1 << 6, 1 << 7, 1 << 11],
prefix: "inactivity_",
},
report: {
permissions: [1 << 5],
prefix: `report_`,
prefix: "report_",
},
};
@ -19,7 +23,7 @@ export async function onRequestGet(context: RequestContext) {
if (
!types[type]?.permissions.find(
(p) => context.data.current_user.permissions & p
(p) => context.data.current_user.permissions & p,
)
)
return new Response('{"error":"You cannot use this filter"}', {