clarion/app/controllers/management/management_controller.rb

15 lines
273 B
Ruby
Raw Normal View History

2016-10-08 21:25:45 +03:00
require 'csv'
2014-09-17 12:43:17 +03:00
module Management
class ManagementController < ::ApplicationController
before_action :authenticate_user!, :authorize_user!
2014-09-17 12:43:17 +03:00
layout 'management'
private
def authorize_user!
head :forbidden unless current_user.admin?
end
2014-09-17 12:43:17 +03:00
end
end