clarion/app/controllers/management/management_controller.rb
2016-10-08 21:25:45 +03:00

15 lines
273 B
Ruby

require 'csv'
module Management
class ManagementController < ::ApplicationController
before_action :authenticate_user!, :authorize_user!
layout 'management'
private
def authorize_user!
head :forbidden unless current_user.admin?
end
end
end