diff --git a/lib/homepage_constraint.rb b/lib/homepage_constraint.rb index 0783fd51f04..a5cfb347582 100644 --- a/lib/homepage_constraint.rb +++ b/lib/homepage_constraint.rb @@ -9,5 +9,7 @@ class HomePageConstraint provider = Discourse.current_user_provider.new(request.env) homepage = provider.current_user ? SiteSetting.homepage : SiteSetting.anonymous_homepage homepage == @filter + rescue Discourse::InvalidAccess + false end end