[openstreetmap/openstreetmap-website] Show user id on profile pages to moderators and admins (PR #4231)

Anton Khorev notifications at github.com
Tue Sep 5 10:43:09 UTC 2023


>From DWG wishlist:
> It would be nice if the user ID could be made visible on the user profile page (perhaps subject to some “expert mode” as discussed initially).

"Expert mode" in this PR is being logged in as a moderator or an administrator.

![image](https://github.com/openstreetmap/openstreetmap-website/assets/4158490/a640bc1a-837a-40e8-af54-300c0b60eb43)

Actually the id is visible to anyone if they look at the *Report this User* link, so no new information is revealed here.
You can view, comment on, or merge this pull request online at:

  https://github.com/openstreetmap/openstreetmap-website/pull/4231

-- Commit Summary --

  * Show user id on profile pages to moderators and admins

-- File Changes --

    M app/views/users/show.html.erb (4)
    M config/locales/en.yml (1)
    M test/controllers/users_controller_test.rb (2)

-- Patch Links --

https://github.com/openstreetmap/openstreetmap-website/pull/4231.patch
https://github.com/openstreetmap/openstreetmap-website/pull/4231.diff

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

Message ID: <openstreetmap/openstreetmap-website/pull/4231 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230905/2c9bea5c/attachment.htm>


More information about the rails-dev mailing list