Admin interface #6

Merged
ignisf merged 23 commits from admin-interface into master 2014-10-06 12:33:26 +03:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 414f1a3916 - Show all commits

View File

@ -1,5 +1,13 @@
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