[openstreetmap/openstreetmap-website] Add oauth scope for redactions (PR #4387)
Anton Khorev
notifications at github.com
Thu Dec 21 14:21:31 UTC 2023
@AntonKhorev 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 << " "
Basically do you want everyone who logged in at community.openstreetmap.org to see the admin star on https://www.openstreetmap.org/oauth2/authorized_applications next to "Read user email address"? Nobody gets to review that permission when they log in.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4387#discussion_r1434137245
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4387/review/1793068985 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20231221/dab4f416/attachment.htm>
More information about the rails-dev
mailing list