<p dir="auto">Previously it was possible to create a note while authorized but having no write_notes scope. The scope check was added to <span class="issue-keyword tooltipped tooltipped-se" aria-label="This pull request closes issue #4362.">fix</span> <a class="issue-link js-issue-link" data-error-text="Failed to load title" data-id="2006181880" data-permission-text="Title is private" data-url="https://github.com/openstreetmap/openstreetmap-website/issues/4362" data-hovercard-type="issue" data-hovercard-url="/openstreetmap/openstreetmap-website/issues/4362/hovercard" href="https://github.com/openstreetmap/openstreetmap-website/issues/4362">#4362</a>.</p>
<p dir="auto">Currently it's not possible to create notes in this manner and there's a test for that:<br>
<a href="https://github.com/openstreetmap/openstreetmap-website/blob/f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0/test/controllers/api/notes_controller_test.rb#L233-L242">https://github.com/openstreetmap/openstreetmap-website/blob/f5af8befa9ffe0c95f4a3c58d2fbb63a2e971ab0/test/controllers/api/notes_controller_test.rb#L233-L242</a></p>

<hr>

<h4>You can view, comment on, or merge this pull request online at:</h4>
<p>  <a href='https://github.com/openstreetmap/openstreetmap-website/pull/5674'>https://github.com/openstreetmap/openstreetmap-website/pull/5674</a></p>

<h4>Commit Summary</h4>
<ul>
  <li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/5674/commits/037bafcd1ca8494f25ded9fbad422c41f349889c" class="commit-link">037bafc</a>  Check user instead of scope when getting note author info</li>
</ul>

<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/5674/files">1 file</a>)</p>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5674/files#diff-6e9fe051c0ef757618e376ffe731dfca8d4960ef0838b7d6a05609b46ba0fad1">app/controllers/api/notes_controller.rb</a>
    (2)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5674.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/5674.patch</a></li>
  <li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/5674.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/5674.diff</a></li>
</ul>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/5674">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLOGNZIZPJPARWQLL4L2P2FRRAVCNFSM6AAAAABXFXGFOOVHI2DSMVQWIX3LMV43ASLTON2WKOZSHA2TIOJYGU3DONY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLJSXJ7AXIVVU6G4CRD2P2FRRA5CNFSM6AAAAABXFXGFOOWGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHKUK47ZU.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/5674</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/5674",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/5674",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>