<p>This PR enforces the use of cancancan authorization checks on all actions, and cleans up some no-longer-required authorization methods.</p>
<p><a href="https://github.com/CanCanCommunity/cancancan/wiki/Ensure-Authorization">https://github.com/CanCanCommunity/cancancan/wiki/Ensure-Authorization</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/2117'>https://github.com/openstreetmap/openstreetmap-website/pull/2117</a></p>
<h4>Commit Summary</h4>
<ul>
<li>Skip authorization checks for the errors controller</li>
<li>Ensure authorization checks happen for all controller methods</li>
<li>Remove old authorization helpers</li>
</ul>
<h4>File Changes</h4>
<ul>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2117/files#diff-0">app/controllers/application_controller.rb</a>
(60)
</li>
<li>
<strong>M</strong>
<a href="https://github.com/openstreetmap/openstreetmap-website/pull/2117/files#diff-1">app/controllers/errors_controller.rb</a>
(2)
</li>
</ul>
<h4>Patch Links:</h4>
<ul>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2117.patch'>https://github.com/openstreetmap/openstreetmap-website/pull/2117.patch</a></li>
<li><a href='https://github.com/openstreetmap/openstreetmap-website/pull/2117.diff'>https://github.com/openstreetmap/openstreetmap-website/pull/2117.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/2117">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/ABWnLWf419MrEBem5f858qjg-luNM0vhks5vDwligaJpZM4aC1lz">mute the thread</a>.<img src="https://github.com/notifications/beacon/ABWnLYkqv-jdoXob7IE5AOBYTeGfY6IKks5vDwligaJpZM4aC1lz.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":"Enforce cancancan on all actions (#2117)"}],"action":{"name":"View Pull Request","url":"https://github.com/openstreetmap/openstreetmap-website/pull/2117"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/2117",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/2117",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>