Show user id on profile pages to moderators and admins

This commit is contained in:
Anton Khorev 2023-09-05 13:35:08 +03:00
parent f5095fe3bd
commit caf49bb25d
3 changed files with 7 additions and 0 deletions

View file

@ -131,6 +131,10 @@
<% end -%>
</dd>
<% end -%>
<% if current_user&.moderator? || current_user&.administrator? %>
<dt class="list-inline-item m-0"><%= t ".uid" %></dt>
<dd class="list-inline-item"><%= link_to @user.id, api_user_path(:id => @user.id) %></dd>
<% end -%>
</dl>
</small>
</div>