Skip to content

Conversation

@maebeale
Copy link
Collaborator

  • This work Closes [link an issue]

What is the goal of this PR and why is this important?

  • Fix my oversight of conditionals within the navbar for logged out state that needed current_user
  • Added navbar spec with logged out, user, super_user expectations

How did you approach the change?

Anything else to add?

@maebeale maebeale force-pushed the fix-logged-out-state branch from 5f1a2e1 to 9690b1b Compare January 16, 2026 13:52
Comment on lines +83 to 84
<% if current_user&.super_user %>
<%= link_to facilitators_path,
Copy link
Collaborator

Choose a reason for hiding this comment

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

@maebeale I already caught this one!! These partials should never render if there is no current_user but we weren't checking for that in _navbar.html.erb.

I already added the fix there. Doesn't hurt to have this check here as well but not required.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TYYY!

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.

3 participants