[openstreetmap/openstreetmap-website] Add oauth scope for redactions (PR #4387)
Tom Hughes
notifications at github.com
Thu Dec 21 18:47:58 UTC 2023
@tomhughes commented on this pull request.
> @@ -0,0 +1,15 @@
+module AuthorizationHelper
+ include ActionView::Helpers::TranslationHelper
+
+ MODERATOR_SCOPES = %w[write_redactions].freeze
+
+ def authorization_scope(scope)
+ html = []
+ if MODERATOR_SCOPES.include? scope
+ html << image_tag("roles/moderator.png", :srcset => image_path("roles/moderator.svg", :class => "align-text-bottom"), :size => "20x20")
+ html << " "
Thanks for moving the marker. You argument about the administrator case being differnet seems sensible so let's leave that.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4387#discussion_r1434399743
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4387/review/1793504818 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231221/b6fa948b/attachment.htm>
More information about the rails-dev
mailing list