]> git.openstreetmap.org Git - rails.git/commitdiff
Drop ACL check from notes#comment as we no longer allow anonymous comments
authorTom Hughes <tom@compton.nu>
Thu, 23 Nov 2023 16:47:35 +0000 (16:47 +0000)
committerTom Hughes <tom@compton.nu>
Thu, 23 Nov 2023 16:56:07 +0000 (16:56 +0000)
app/controllers/api/notes_controller.rb

index e28c0a622802f7d1419e200928e0a5893374d550..8a0a82c40150687063fbf0720b5114c409c73725 100644 (file)
@@ -138,9 +138,6 @@ module Api
     ##
     # Add a comment to an existing note
     def comment
-      # Check the ACLs
-      raise OSM::APIAccessDenied if current_user.nil? && Acl.no_note_comment(request.remote_ip)
-
       # Check the arguments are sane
       raise OSM::APIBadUserInput, "No id was given" unless params[:id]
       raise OSM::APIBadUserInput, "No text was given" if params[:text].blank?