projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
117f0e8
)
Disable forgery protection for notes API methods
author
Tom Hughes
<tom@compton.nu>
Thu, 29 Jun 2017 18:14:55 +0000
(19:14 +0100)
committer
Tom Hughes
<tom@compton.nu>
Thu, 29 Jun 2017 18:14:55 +0000
(19:14 +0100)
Fixes #1571
app/controllers/notes_controller.rb
patch
|
blob
|
history
diff --git
a/app/controllers/notes_controller.rb
b/app/controllers/notes_controller.rb
index 1de58af906d5ea3e3f24a5799ea1fe2a599ce6a6..f4667bef5f47beaad0ff4da13a95f99e03beeb15 100644
(file)
--- a/
app/controllers/notes_controller.rb
+++ b/
app/controllers/notes_controller.rb
@@
-1,6
+1,7
@@
class NotesController < ApplicationController
layout "site", :only => [:mine]
class NotesController < ApplicationController
layout "site", :only => [:mine]
+ skip_before_action :verify_authenticity_token, :except => [:mine]
before_action :check_api_readable
before_action :authorize_web, :only => [:mine]
before_action :setup_user_auth, :only => [:create, :comment]
before_action :check_api_readable
before_action :authorize_web, :only => [:mine]
before_action :setup_user_auth, :only => [:create, :comment]