[openstreetmap/openstreetmap-website] Show unredacted element history to moderators (PR #4324)
Tom Hughes
notifications at github.com
Wed Feb 28 14:03:05 UTC 2024
@tomhughes 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?
Oh sorry about that.. I lost track of which things had and hadn't been merged over the weekend...
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4324#discussion_r1506015006
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4324/review/1906351807 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240228/6a346100/attachment.htm>
More information about the rails-dev
mailing list