Archived
Fix site preference openness problem
This commit is contained in:
1 parent
940a915125
commit
831bd722b8
2 files changed
+2
-2
No files matched your search
@@ -18,7 +18,7 @@ class ApplicationController < ActionController::Base
|
||||
helper_attr :site_valid_locales
|
||||
|
||||
def check_backend_openness
|
||||
if !Me.backend_openness_on
|
||||
if Site.first.backend_openness_on
|
||||
redirect_to '/users/sign_in' if not (authenticate_user! and is_member? )
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user