Authorize admin after checking csrf (#523)

This commit is contained in:
Andy Zhao 2018-06-29 13:59:03 -04:00 committed by Ben Halpern
parent 808550afb0
commit 62352fe6d6

View file

@ -7,6 +7,7 @@
module Admin
class ApplicationController < Administrate::ApplicationController
include Pundit
protect_from_forgery with: :exception, prepend: true
before_action :authorize_admin
def order