[openstreetmap/openstreetmap-website] Remove ability to upload/edit traces from blocked users (PR #4129)
Anton Khorev
notifications at github.com
Fri Aug 18 16:56:46 UTC 2023
@AntonKhorev commented on this pull request.
> @@ -262,6 +262,25 @@ def icon
private
+ def deny_html_access_for_current_user(exception)
+ user_block = current_user.blocks.active.take
+ if exception.action == :new || exception.action == :create
ok, although it's a string instead of a symbol
`deny_access` also receives and ignores an exception
--
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4129#discussion_r1298667138
You are receiving this because you are subscribed to this thread.
Message ID: <openstreetmap/openstreetmap-website/pull/4129/review/1584909844 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230818/cb089c33/attachment-0001.htm>
More information about the rails-dev
mailing list