Files
sx-fc/app/controllers/base_waiter_controller.rb
2019-12-03 19:37:59 +06:30

18 lines
318 B
Ruby
Executable File

class BaseWaiterController < ActionController::Base
include MultiTenancy
include LoginVerification
layout "waiter"
before_action :check_user
#before_action :check_installation
protect_from_forgery with: :exception
def check_user
if current_user.nil?
redirect_to root_path
end
end
end