[openstreetmap/openstreetmap-website] Add oauth scope for redactions (PR #4387)

Anton Khorev notifications at github.com
Thu Dec 21 14:16:56 UTC 2023


@AntonKhorev commented on this pull request.



> @@ -0,0 +1,15 @@
+module AuthorizationHelper
+  include ActionView::Helpers::TranslationHelper
+
+  MODERATOR_SCOPES = %w[write_redactions].freeze

Moved `MODERATOR_SCOPES` to `lib/oauth.rb`. It was in the helper because it's not used in any permission granting logic.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4387#discussion_r1434131322
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4387/review/1793058663 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231221/e9142bfc/attachment.htm>


More information about the rails-dev mailing list