Add inactivity prefix to fetch by id
This commit is contained in:
parent
1adda617cd
commit
17bca653cf
@ -6,11 +6,15 @@ export async function onRequestGet(context: RequestContext) {
|
|||||||
},
|
},
|
||||||
gma: {
|
gma: {
|
||||||
permissions: [1 << 5],
|
permissions: [1 << 5],
|
||||||
prefix: `gameappeal_`,
|
prefix: "gameappeal_",
|
||||||
|
},
|
||||||
|
inactivity: {
|
||||||
|
permissions: [1 << 0, 1 << 4, 1 << 6, 1 << 7, 1 << 11],
|
||||||
|
prefix: "inactivity_",
|
||||||
},
|
},
|
||||||
report: {
|
report: {
|
||||||
permissions: [1 << 5],
|
permissions: [1 << 5],
|
||||||
prefix: `report_`,
|
prefix: "report_",
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
@ -19,7 +23,7 @@ export async function onRequestGet(context: RequestContext) {
|
|||||||
|
|
||||||
if (
|
if (
|
||||||
!types[type]?.permissions.find(
|
!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"}', {
|
return new Response('{"error":"You cannot use this filter"}', {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user