mirror of
https://github.com/discourse/discourse.git
synced 2025-05-23 06:51:27 +08:00
Redirect all controllers to login if required
We want to skip the filter for sessions controller so that we can login and we want to skip the filter for static pages because those should be visible to visitors.
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
class StaticController < ApplicationController
|
||||
|
||||
skip_before_filter :check_xhr
|
||||
skip_before_filter :check_xhr, :redirect_to_login_if_required
|
||||
|
||||
def show
|
||||
|
||||
|
Reference in New Issue
Block a user