Skip to content

Commit

Permalink
Remove auth requirement from Manager home page (#12023)
Browse files Browse the repository at this point in the history
(cherry picked from commit bb5f26a)
  • Loading branch information
tristan-orourke authored and brindasasi committed Nov 20, 2024
1 parent c97a178 commit afbbad3
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions apps/web/src/pages/Home/ManagerHomePage/ManagerHomePage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import UserPlusIcon from "@heroicons/react/24/outline/UserPlusIcon";

import { CardFlat, Flourish, Heading, Link } from "@gc-digital-talent/ui";
import { navigationMessages } from "@gc-digital-talent/i18n";
import { ROLE_NAME } from "@gc-digital-talent/auth";

import SEO from "~/components/SEO/SEO";
import useRoutes from "~/hooks/useRoutes";
Expand All @@ -25,7 +24,6 @@ import peopleSittingOnCouch from "~/assets/img/people-sitting-on-couch-discussin
import peopleSittingInLine from "~/assets/img/people-sitting-in-a-line-smiling-at-another-person.webp";
import { TALENTSEARCH_SUPPORT_EMAIL } from "~/constants/talentSearchConstants";
import DirectiveBlock from "~/components/DirectiveBlock/DirectiveBlock";
import RequireAuth from "~/components/RequireAuth/RequireAuth";

const pageTitle = defineMessage({
defaultMessage: "Managers community",
Expand Down Expand Up @@ -391,11 +389,7 @@ const ManagerHomePage = () => {
);
};

export const Component = () => (
<RequireAuth roles={[ROLE_NAME.PlatformAdmin, ROLE_NAME.Manager]}>
<ManagerHomePage />
</RequireAuth>
);
export const Component = () => <ManagerHomePage />;

Component.displayName = "ManagerHomePage";

Expand Down

0 comments on commit afbbad3

Please sign in to comment.