Disallow adding groups to E2EE projects

This commit is contained in:
Tuan Dang
2024-04-11 19:52:10 -07:00
parent c98ef0eca8
commit fa1b236f26
2 changed files with 21 additions and 13 deletions
@@ -68,6 +68,7 @@ export const groupProjectServiceFactory = ({
});
if (!project) throw new BadRequestError({ message: `Failed to find project with slug ${projectSlug}` });
if (project.version < 2) throw new BadRequestError({ message: `Failed to add group to E2EE project` });
const { permission } = await permissionService.getProjectPermission(
actor,