Ability to hide IP addresses from mod log
This commit is contained in:
parent
889945f50c
commit
bb2868896c
@ -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;
|
||||||
|
@ -18,7 +18,11 @@
|
|||||||
{% endif %}
|
{% endif %}
|
||||||
</td>
|
</td>
|
||||||
<td class="minimal">
|
<td class="minimal">
|
||||||
<a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
|
{% if mod|hasPermission(config.mod.show_ip_modlog) %}
|
||||||
|
<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>
|
||||||
|
Loading…
Reference in New Issue
Block a user