Restore data team access to uploads
This commit is contained in:
@ -1,7 +1,10 @@
|
||||
export async function onRequest(context: RequestContext) {
|
||||
const { current_user: currentUser } = context.data;
|
||||
|
||||
if (!(currentUser?.permissions & (1 << 5)))
|
||||
if (
|
||||
!(currentUser?.permissions & (1 << 5)) ||
|
||||
!(currentUser?.permissions & (1 << 12))
|
||||
)
|
||||
return new Response('{"error":"Forbidden"}', {
|
||||
headers: {
|
||||
"content-type": "application/json",
|
||||
|
Reference in New Issue
Block a user