<p>This will allow us to rename actions without causing permissions headaches. The choice of abilities files is made by inheriting from either <code>api_controller</code> or <code>application_controller</code>.</p>
<p>Also rename <code>capabilities</code> to <code>api_capabilites</code>, for consistency.</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/2192'>https://github.com/openstreetmap/openstreetmap-website/pull/2192</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>Disentangle the api abilities from the web abilities</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-0">app/abilities/ability.rb</a>
    (34)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-1">app/abilities/api_ability.rb</a>
    (88)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-2">app/abilities/api_capability.rb</a>
    (2)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-3">app/controllers/api_controller.rb</a>
    (9)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-4">app/controllers/application_controller.rb</a>
    (7)
  </li>
  <li>
    <strong>M</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-5">test/abilities/abilities_test.rb</a>
    (26)
  </li>
  <li>
    <strong>A</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-6">test/abilities/api_abilities_test.rb</a>
    (44)
  </li>
  <li>
    <strong>R</strong>
    <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192/files#diff-7">test/abilities/api_capability_test.rb</a>
    (32)
  </li>
</ul>

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

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/2192">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLWVhrHWCphw1V51BgCY7H6htHuhCks5va6YXgaJpZM4cOVky">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLZCiwGK-Xx6NCHsmS7_sEYUESvchks5va6YXgaJpZM4cOVky.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/openstreetmap/openstreetmap-website","title":"openstreetmap/openstreetmap-website","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/openstreetmap/openstreetmap-website"}},"updates":{"snippets":[{"icon":"DESCRIPTION","message":"Disentangle the api abilities from the web abilities (#2192)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/2192"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2192",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2192",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>