Ability to hide IP addresses from mod log

This commit is contained in:
Michael Foster 2013-07-31 00:04:57 -04:00
parent 889945f50c
commit bb2868896c
2 changed files with 7 additions and 1 deletions

View File

@ -1024,6 +1024,8 @@
$config['mod']['createusers'] = ADMIN; $config['mod']['createusers'] = ADMIN;
// View the moderation log // View the moderation log
$config['mod']['modlog'] = ADMIN; $config['mod']['modlog'] = ADMIN;
// View IP addresses of other mods in ?/log
$config['mod']['show_ip_modlog'] = ADMIN;
// View relevant moderation log entries on IP address pages (ie. ban history, etc.) // View relevant moderation log entries on IP address pages (ie. ban history, etc.)
// Warning: Can be pretty resource exhaustive if your mod logs are huge. // Warning: Can be pretty resource exhaustive if your mod logs are huge.
$config['mod']['modlog_ip'] = MOD; $config['mod']['modlog_ip'] = MOD;

View File

@ -18,7 +18,11 @@
{% endif %} {% endif %}
</td> </td>
<td class="minimal"> <td class="minimal">
{% if mod|hasPermission(config.mod.show_ip_modlog) %}
<a href="?/IP/{{ log.ip }}">{{ log.ip }}</a> <a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
{% else %}
<em>hidden</em>
{% endif %}
</td> </td>
<td class="minimal"> <td class="minimal">
<span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span> <span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span>