[openstreetmap/openstreetmap-website] Add a CanCanCan ability to see redacted versions (PR #4553)
Anton Khorev
notifications at github.com
Sat Jul 6 14:46:03 UTC 2024
@AntonKhorev commented on this pull request.
> @@ -54,6 +54,7 @@ def initialize(user)
can [:index, :create, :destroy], UserMute
if user.moderator?
+ can :show_redactions, [Node, Way, Relation, OldNode, OldWay, OldRelation]
Checking `current_user&.moderator?` could be clearer only if you know that moderators can view redacted information.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4553#discussion_r1667377197
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4553/review/2161540427 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240706/cb4ec58d/attachment.htm>
More information about the rails-dev
mailing list