diff --git a/packages/api/src/router/workspace-security.ts b/packages/api/src/router/workspace-security.ts index a47ea09d..1db2afbb 100644 --- a/packages/api/src/router/workspace-security.ts +++ b/packages/api/src/router/workspace-security.ts @@ -18,7 +18,7 @@ export const workspaceEmailDomainMatchingRouter = createTRPCRouter({ .meta({ authorizationCheck: ({ canUser, input }) => canUser - .perform(Permission.WorkspaceUpdate) + .perform(Permission.WorkspaceListMembers) .on({ type: "workspace", id: input }), }) .input(z.string().uuid())