fix(ui): restore project filter so admins don't see other users' personal projects (#12377)
Some checks failed
Generate Translation Files for Community Pieces and UI / shard-0 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-1 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-2 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-3 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-4 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-5 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / finalize (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / notify-failure (push) Has been cancelled
Continuous Delivery — Staging / check-freeze (push) Has been cancelled
Sync Playwright test to BetterStack / Update BetterStack Playwright monitor (push) Has been cancelled
Continuous Delivery — Staging / build-image (push) Has been cancelled
Continuous Delivery — Staging / deploy-staging (push) Has been cancelled
Continuous Delivery — Staging / promote-after-hotfix (push) Has been cancelled
Delete old workflow runs / delete-runs (push) Has been cancelled
Continuous Delivery — Release / weekly-release (push) Has been cancelled
Some checks failed
Generate Translation Files for Community Pieces and UI / shard-0 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-1 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-2 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-3 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-4 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / shard-5 (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / finalize (push) Has been cancelled
Generate Translation Files for Community Pieces and UI / notify-failure (push) Has been cancelled
Continuous Delivery — Staging / check-freeze (push) Has been cancelled
Sync Playwright test to BetterStack / Update BetterStack Playwright monitor (push) Has been cancelled
Continuous Delivery — Staging / build-image (push) Has been cancelled
Continuous Delivery — Staging / deploy-staging (push) Has been cancelled
Continuous Delivery — Staging / promote-after-hotfix (push) Has been cancelled
Delete old workflow runs / delete-runs (push) Has been cancelled
Continuous Delivery — Release / weekly-release (push) Has been cancelled
This commit is contained in:
@@ -149,14 +149,21 @@ export const projectCollectionUtils = {
|
||||
};
|
||||
},
|
||||
useAll: () => {
|
||||
const currentUserId = authenticationSession.getCurrentUserId();
|
||||
return useLiveSuspenseQuery(
|
||||
(q) =>
|
||||
q
|
||||
.from({ project: projectCollection })
|
||||
.where(({ project }) =>
|
||||
or(
|
||||
eq(project.type, ProjectType.TEAM),
|
||||
eq(project.ownerId, currentUserId),
|
||||
),
|
||||
)
|
||||
.orderBy(({ project }) => project.type, 'asc')
|
||||
.orderBy(({ project }) => project.created, 'asc')
|
||||
.select(({ project }) => ({ ...project })),
|
||||
[],
|
||||
[currentUserId],
|
||||
);
|
||||
},
|
||||
useAllPlatformProjects: (filters?: {
|
||||
|
||||
Reference in New Issue
Block a user