Skip to content

Commit b70bf1d

Browse files
Merge pull request #2832 from DMPRoadmap/nav_partial_fix
test for home page failed when org admin
2 parents 727da2c + b83ab5d commit b70bf1d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/views/layouts/_navigation.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@
5959
<%= render "layouts/signin_signout" %>
6060
</ul>
6161

62-
<% unless active_page?(root_path, true) || user_signed_in? %>
62+
<% unless user_signed_in? || ((controller_name.eql? "home") && (action_name.eql? "index")) %>
6363
<%= render partial: 'shared/access_controls', layout: 'shared/modal', locals: { id: "header-signin", title: _('Sign in')} %>
6464
<% end %>
6565
</div><!-- /.navbar-collapse -->

0 commit comments

Comments
 (0)