API for Locations
This commit is contained in:
1 parent
6040e63034
commit
c545c6f172
7 files changed
+60
No files matched your search
@@ -23,6 +23,13 @@ class ApplicationController < ActionController::Base
|
||||
end
|
||||
end
|
||||
|
||||
def check_mobile_api_openness
|
||||
if !Site.first.mobile_api_openness_on
|
||||
redirect_to '/users/sign_in' if not (authenticate_user! and is_member? )
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
def site_restart
|
||||
Resque.enqueue(RestartServer)
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user