Skip to content

Conversation

@neennera
Copy link
Contributor

 if (user.role === "STAFF" && !url.pathname.startsWith("/staff")) {
    return new Response(null, {
      status: 302,
      headers: {
        Location: "/staff",
      },
    });
  }

Copy link
Contributor Author

@neennera neennera Jul 16, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I was copy it from /firstdate/map and forget to remove map script

@Taihenc Taihenc merged commit 5468d15 into dev Jul 16, 2025
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants