Permalink
Newer
100644
10 lines (8 sloc)
272 Bytes
3
export async function onRequest(context: RequestContext) {
4
if (
5
![1 << 4, 1 << 12].find((p) => context.data.current_user?.permissions & p)
6
)