Skip to content

Commit

Permalink
Update index.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
VLGrigoryan authored Sep 11, 2024
1 parent 9531f2a commit 1724aac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/pages/about-us/team/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ const Team = (props: InferGetServerSidePropsType<typeof getServerSideProps>) =>
const permissions = settings?.permissions;

const router = useRouter();
if (permissions && !permissions.team) {
if (permissions && !permissions.show_team) {
router.replace('/about-us/404');
}

Expand Down

0 comments on commit 1724aac

Please sign in to comment.