Files
sx-fc/app/controllers/base_waiter_controller.rb
2019-01-07 16:05:18 +06:30

16 lines
296 B
Ruby
Executable File

class BaseWaiterController < ActionController::Base
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