Skip to content

Commit

Permalink
fix: Allow viewer role to access the settings/workspace/members route (
Browse files Browse the repository at this point in the history
  • Loading branch information
zacharyblasczyk authored Oct 19, 2024
1 parent 7816179 commit 0c06c51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/api/src/router/workspace-security.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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())
Expand Down

0 comments on commit 0c06c51

Please sign in to comment.