[openstreetmap/openstreetmap-website] Show unredacted element history to moderators (PR #4324)

Anton Khorev notifications at github.com
Wed Feb 28 13:47:55 UTC 2024


@AntonKhorev commented on this pull request.



> @@ -77,4 +78,10 @@ def changeset
   end
 
   def query; end
+
+  private
+
+  def require_moderator_for_unredacted_history
+    deny_access(nil) if params[:show_redactions] && !current_user&.moderator?

This change is not merged yet
https://github.com/openstreetmap/openstreetmap-website/pull/4540/files#diff-766c34fd6533171eaf54300c153f89d6002c35c02cfc9c5b219251f85180ad07

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

Message ID: <openstreetmap/openstreetmap-website/pull/4324/review/1906316014 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240228/ebbc4962/attachment.htm>


More information about the rails-dev mailing list