Authorize admin after checking csrf (#523)
This commit is contained in:
parent
808550afb0
commit
62352fe6d6
1 changed files with 1 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue