mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-24 07:30:10 +01:00
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;
|
||||
// View the moderation log
|
||||
$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.)
|
||||
// Warning: Can be pretty resource exhaustive if your mod logs are huge.
|
||||
$config['mod']['modlog_ip'] = MOD;
|
||||
|
@ -18,7 +18,11 @@
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="minimal">
|
||||
{% if mod|hasPermission(config.mod.show_ip_modlog) %}
|
||||
<a href="?/IP/{{ log.ip }}">{{ log.ip }}</a>
|
||||
{% else %}
|
||||
<em>hidden</em>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td class="minimal">
|
||||
<span title="{{ log.time|date(config.post_date) }}">{{ log.time|ago }}</span>
|
||||
|
Loading…
Reference in New Issue
Block a user