<p dir="auto">Currently redactions are allowed if the <code class="notranslate">write_api</code> is granted. But <code class="notranslate">write_api</code> is a very common scope requested by many apps for things like adding changeset comments. Those apps have no business being able to redact anything.</p>
<p dir="auto">Here a separate scope for redactions is introduced. <code class="notranslate">write_api</code> still allows redactions, this is to be disabled in a later pull request, after <a href="https://github.com/woodpeck/osm-revert-scripts">osmtools</a> are updated to request the new <code class="notranslate">write_redactions</code> scope. I don't know about any other apps that need this permission.</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/4387'>https://github.com/openstreetmap/openstreetmap-website/pull/4387</a></p>
<h4>Commit Summary</h4>
<ul>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/commits/19af9b5b1099decc24e056cb8fb3324f8277c7e9" class="commit-link">19af9b5</a> Highlight moderator-only scopes when showing authorizations</li>
<li><a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/commits/8c5a6ac99438c387c21abf5b6d489af29df5300c" class="commit-link">8c5a6ac</a> Add oauth scope for redactions</li>
</ul>
<h4 style="display: inline-block">File Changes </h4> <p style="display: inline-block">(<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files">10 files</a>)</p>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-38488bd50be0cf63517ec5ae3fd3c4e462b3fdda7201844b0ab3442b73b8c08d">app/abilities/api_capability.rb</a>
(8)
</li>
<li>
<strong>A</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-d3d8591d9708bdc429ce04c584108c9b06c3ebea9f6ae56f11d6a05fecfe0f22">app/helpers/authorization_helper.rb</a>
(15)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-717868c3429f5ee5a7740cb73ad913ef90a060a81a9290cc4d0be961332f579d">app/views/oauth2_applications/_application.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-a883ca6abfde69d2e3b1191317f5e544efcc5b7f9f3a17ab9369cbbac37f5d5a">app/views/oauth2_authorizations/new.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-fd74075d1a55f2e77a09fd061551d468ed49b53621c5fffd366cfbf72590968a">app/views/oauth2_authorized_applications/_application.html.erb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-44438ce218f5287c58d0017f965d888715635d94280669896f75841fbd7b4cd7">config/locales/en.yml</a>
(1)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-373d9a0dc0a0811fb3fb744cfed277eb94abc4cbc3dac74ff66ab787a06766be">lib/oauth.rb</a>
(2)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-7ee3168144cba950374d481967d27d39db360d6dfb366aa9033b42f32cb98256">test/controllers/api/old_nodes_controller_test.rb</a>
(50)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-8e8190e84ed61c4b7d4457b6d491daae4fbe436431cd5985b364592d52271c68">test/controllers/api/old_relations_controller_test.rb</a>
(50)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/4387/files#diff-1d1ef6db64a5caea6f9e55e4038ed133a740c05263a5863c797fbfe26adc533e">test/controllers/api/old_ways_controller_test.rb</a>
(50)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4387.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/4387.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/4387.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/4387.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/4387">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLZK3CUZ2MQUZGCYZLYHP2YZAVCNFSM6AAAAABAEPPM26VHI2DSMVQWIX3LMV43ASLTON2WKOZSGAZDEMZUGU3DOMY">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLL2DXSUCVUPKZQTFFTYHP2YZA5CNFSM6AAAAABAEPPM26WGG33NNVSW45C7OR4XAZNFJFZXG5LFVJRW63LNMVXHIX3JMTHHRCULZE.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/4387</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/4387",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4387",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>