Skip to content

Commit

Permalink
filter orgs by if the user can manage them
Browse files Browse the repository at this point in the history
  • Loading branch information
aaronshiel committed Oct 3, 2024
1 parent b5c17d0 commit 9d52549
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions client/src/pages/organizations.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ import {
copyAndRemove,
copyAndSet,
getOrgHomeUrl,
managesOrg,
} from "../helpers";
import { uuid4 } from "@sentry/utils";

Expand Down Expand Up @@ -670,6 +671,11 @@ function OrganizationsPage(props: {

useEffect(() => {
switchActiveMentor();
orgsPagin.setPreFilter({
filter: (o) => {
return managesOrg(o, props.user);
},
});
}, []);

if (!orgsPagin.data) {
Expand Down

0 comments on commit 9d52549

Please sign in to comment.