Skip to content

Commit

Permalink
FIX: Footer not shown when show_footer_on_login_required_page is tr…
Browse files Browse the repository at this point in the history
…ue (#43)

This is fixes a regression introduced in a766346
  • Loading branch information
tgxworld authored Apr 8, 2024
1 parent a677b33 commit 12ff98a
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{{#if (not (theme-setting "Show_footer_on_login_required_page"))}}
{{#if (not (theme-setting "show_footer_on_login_required_page"))}}
{{hide-application-footer}}
{{/if}}
13 changes: 12 additions & 1 deletion spec/system/footer_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,18 @@
end
end

it "should not display the footer to anon users when `Show_footer_on_login_required_page` is false" do
it "should display the footer to anon users when `show_footer_on_login_required_page` is true" do
SiteSetting.login_required = true

theme.update_setting(:show_footer_on_login_required_page, true)
theme.save!

visit("/")

expect(page).to have_css(".below-footer-outlet.custom-footer")
end

it "should not display the footer to anon users when `show_footer_on_login_required_page` is false" do
SiteSetting.login_required = true

theme.update_setting(:show_footer_on_login_required_page, false)
Expand Down

0 comments on commit 12ff98a

Please sign in to comment.