Skip to content

Commit

Permalink
fix: Require logged in user for favorites alerts edit route (#14803)
Browse files Browse the repository at this point in the history
  • Loading branch information
olerichter00 authored Nov 6, 2024
1 parent 8ec8df6 commit 51d282c
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
5 changes: 0 additions & 5 deletions src/Apps/Favorites/favoritesRoutes.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,11 +87,6 @@ export const favoritesRoutes: RouteProps[] = [
onClientSideRender: () => {
Alerts.preload()
},
onServerSideRender: ({ req, res }) => {
if (!req.user) {
res.redirect("/")
}
},
query: graphql`
query favoritesRoutesAlertsAppEditQuery {
me {
Expand Down
2 changes: 1 addition & 1 deletion src/Server/middleware/userRequiredMiddleware.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const USER_REQUIRED_ROUTES = [
"/notifications",
"/orders(.*)",
"/my-collection/artworks(.*)",
"/favorites/alerts",
"/favorites/alerts(.*)",
"/settings/payments",
"/settings/purchases(.*)",
"/settings/shipping",
Expand Down

0 comments on commit 51d282c

Please sign in to comment.