chore: Serialize domain policies on team (#1970)
* domain policies exposed on team, consistency * fix: Remove usage of isAdmin in frontend * test
This commit is contained in:
@ -26,6 +26,8 @@ router.post("attachments.create", auth(), async (ctx) => {
|
||||
ctx.assertPresent(size, "size is required");
|
||||
|
||||
const { user } = ctx.state;
|
||||
authorize(user, "createAttachment", user.team);
|
||||
|
||||
const s3Key = uuid.v4();
|
||||
const acl =
|
||||
ctx.body.public === undefined
|
||||
|
Reference in New Issue
Block a user