]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/api/notes_controller.rb
Merge remote-tracking branch 'upstream/pull/5157'
[rails.git] / app / controllers / api / notes_controller.rb
index be36421d943baf40b0ea2cd8553a1752a2ec323a..3352c1f69b591c121fcf582d2ec01f6307185bac 100644 (file)
@@ -385,7 +385,7 @@ module Api
     def add_comment(note, text, event, notify: true)
       attributes = { :visible => true, :event => event, :body => text }
 
-      if doorkeeper_token || current_token
+      if doorkeeper_token
         author = current_user if scope_enabled?(:write_notes)
       else
         author = current_user