api: make IP addresses in the API.
Make the following fields visible in API responses: * ip_bans.ip_addr * ip_geolocations.ip_addr * ip_geolocations.network * users.last_ip_addr (mod only) * user_sessions.ip_addr * api_keys.last_ip_address * api_keys.permitted_ip_addresses Before IP addresses were globally hidden in API responses because IPs were present in a lot of tables and we didn't want to accidentally leak them. Now that we've gotten rid of IPs from most tables, it's safe to unhide them.
This commit is contained in:
@@ -14,7 +14,7 @@
|
||||
|
||||
<%= table_for @ip_bans, class: "striped autofit", width: "100%" do |t| %>
|
||||
<% t.column "IP Address" do |ip_ban| %>
|
||||
<%= link_to ip_ban.subnetted_ip, ip_address_path(ip_ban.ip_addr.to_s) %>
|
||||
<%= link_to ip_ban.ip_addr, ip_address_path(ip_ban.ip_addr.to_s) %>
|
||||
<% end %>
|
||||
<% t.column "Reason", td: { class: "col-expand" } do |ban| %>
|
||||
<div class="prose">
|
||||
|
||||
Reference in New Issue
Block a user