Skip to content

Commit 151ccc6

Browse files
github-actions[bot]chasprowebdevMarfuen
authored
fix(app): only show owner/admin users on Task UI (#1524)
Co-authored-by: chasprowebdev <chasgarciaprowebdev@gmail.com> Co-authored-by: Mariano Fuentes <marfuen98@gmail.com>
1 parent 5cc8bf4 commit 151ccc6

File tree

1 file changed

+6
-1
lines changed
  • apps/app/src/app/(app)/[orgId]/tasks/[taskId]

1 file changed

+6
-1
lines changed

apps/app/src/app/(app)/[orgId]/tasks/[taskId]/page.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,12 @@ const getMembers = async (orgId: string, session: Session) => {
6666
}
6767

6868
const members = await db.member.findMany({
69-
where: { organizationId: activeOrgId },
69+
where: {
70+
organizationId: activeOrgId,
71+
role: {
72+
notIn: ['employee'],
73+
},
74+
},
7075
include: { user: true },
7176
});
7277
return members;

0 commit comments

Comments
 (0)