From 2153e00f9fe3c5e172e40db179b0252367e1cd08 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 23 Nov 2023 16:47:35 +0000 Subject: [PATCH] Drop ACL check from notes#comment as we no longer allow anonymous comments --- app/controllers/api/notes_controller.rb | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/controllers/api/notes_controller.rb b/app/controllers/api/notes_controller.rb index e28c0a622..8a0a82c40 100644 --- a/app/controllers/api/notes_controller.rb +++ b/app/controllers/api/notes_controller.rb @@ -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? -- 2.39.5