[openstreetmap/openstreetmap-website] Edit unrevoked block (PR #5104)

Tom Hughes notifications at github.com
Thu Aug 22 17:05:34 UTC 2024


@tomhughes commented on this pull request.



> @@ -60,7 +60,10 @@ def initialize(user)
           can [:index, :show, :resolve, :ignore, :reopen], Issue
           can :create, IssueComment
           can [:new, :create, :edit, :update, :destroy], Redaction
-          can [:new, :edit, :create, :update, :revoke, :revoke_all], UserBlock
+          can [:new, :create, :revoke, :revoke_all], UserBlock
+          can :update, UserBlock, :creator => user
+          can :update, UserBlock, :revoker => user
+          can :update, UserBlock, :active? => true

Thanks for the explanation. I had missed that this was inside a moderator test and so only applied to moderators...

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

Message ID: <openstreetmap/openstreetmap-website/pull/5104/review/2255200891 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20240822/548077ab/attachment-0001.htm>


More information about the rails-dev mailing list