Class: Editor::ApplicationController

Inherits:
ApplicationController show all
Defined in:
app/controllers/editor/application_controller.rb

Overview

This controller contain the methods shared for all editor controller

Instance Method Summary collapse

Methods inherited from ApplicationController

#access_denied!, #record_not_found!

Instance Method Details

#authenticate_editor!Object (private)

deny access unless current_user is an editor


10
11
12
# File 'app/controllers/editor/application_controller.rb', line 10

def authenticate_editor!
  access_denied! unless current_user.editor? || current_user.admin?
end