Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix login screen when personas is disabled #447

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

peteryates
Copy link
Member

The personas_path is now unreachable when ENABLE_PERSONAS is false, so we want to avoid calling the helper elsewhere. Moving the logic to a helper tidies the logic up and makes it easier to test.

The personas_path is now missing when personas are disabled so we want
to avoid calling the helper. Moving the logic to a helper tidies the
logic up and makes it easier to test.
This is a subtle change but it means that the route will always show up
in `rails routes` regardless of the check, but it'll still block people
from visiting it unless the constraint is met
@peteryates peteryates added the Deploy When this label is present on a PR, pushes will build and deploy a review app. label Oct 11, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Deploy When this label is present on a PR, pushes will build and deploy a review app.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant