mod actions: hide ip bans from non-mods.

Hide IP ban creation and deletion actions from non-mods in the
/mod_actions listing.

The previous approach of just filtering out the IP from the description
was hacky and didn't work with the `only` param (/mod_actions.json?only=id
still included the description field).
This commit is contained in:
evazion
2019-12-16 12:20:41 -06:00
parent 84ba1d417f
commit 3d03de1c52
3 changed files with 15 additions and 20 deletions

View File

@@ -20,7 +20,7 @@
</td>
<td class="col-expand">
<div class="prose">
<%= format_text(mod_action.filtered_description) %>
<%= format_text(mod_action.description) %>
</div>
</td>
<td>