[openstreetmap/openstreetmap-website] Add a CanCanCan ability to see redacted versions (PR #4553)
mmd
notifications at github.com
Sat Jul 6 12:42:09 UTC 2024
@mmd-osm 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]
Redactions are only applicable to Old{Node, Way, Relation}, i.e. we cannot redact the currently active version. I didn't quite get why we need to have "Node, Way, Relation" in the list here.
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4553#pullrequestreview-2161526738
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4553/review/2161526738 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240706/4709cbfe/attachment.htm>
More information about the rails-dev
mailing list