Drop ACL check from notes#comment as we no longer allow anonymous comments
This commit is contained in:
parent
efd2b92a80
commit
2153e00f9f
1 changed files with 0 additions and 3 deletions
|
@ -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?
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue