Files
sx-fc/app/controllers/base_waiter_controller.rb
2019-12-20 10:35:31 +06:30

17 lines
317 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