only show ratelimit to server level admins

This commit is contained in:
Matthew Saunders Brown 2022-07-02 10:08:09 -07:00
parent fd94a4e3c4
commit fc52030df9
3 changed files with 8 additions and 6 deletions

View File

@ -48,14 +48,13 @@
</false>
</check>
<label for="ratelimit">Rate Limit <small>(emails per hour)</small></label>
<check if="{{ @NAV.mapping=='vpanel' }}">
<label for="ratelimit">Rate Limit <small>(emails per hour)</small></label>
<true>
<input id="ratelimit" name="ratelimit" type="text" value="{{ @mbox.ratelimit }}" required>
</true>
<false>
<input id="ratelimit" name="ratelimit" type="hidden" value="{{ @mbox.ratelimit }}" required>
{{ @mbox.ratelimit }}
</false>
</check>

View File

@ -47,14 +47,13 @@
</false>
</check>
<label for="ratelimit">Rate Limit <small>(emails per hour)</small></label>
<check if="{{ @NAV.mapping=='vpanel' }}">
<label for="ratelimit">Rate Limit <small>(emails per hour)</small></label>
<true>
<input id="ratelimit" name="ratelimit" type="text" value="{{ @mbox_array.ratelimit }}" required>
</true>
<false>
<input id="ratelimit" name="ratelimit" type="hidden" value="{{ @mbox_array.ratelimit }}" required>
{{ @mbox_array.ratelimit }}
</false>
</check>

View File

@ -5,7 +5,9 @@
<th>Account</th>
<th>Status</th>
<th>Quota</th>
<th>Rate Limit</th>
<check if="{{ @NAV.mapping=='vpanel' }}">
<th>Rate Limit</th>
</check>
<th>Filtering</th>
<th>Action</th>
</tr>
@ -13,7 +15,9 @@
<td>{{ @mbox_array.mbox }}@{{ @mbox_array.domain }}</td>
<td>{{ @mbox_array.status }}</td>
<td>{{ @mbox_array.quota }}</td>
<td>{{ @mbox_array.ratelimit }}</td>
<check if="{{ @NAV.mapping=='vpanel' }}">
<td>{{ @mbox_array.ratelimit }}</td>
</check>
<td>{{ @mbox_array.filter }}</td>
<td><a href="{{@REALM}}/Edit">Edit</a> <a href="{{@REALM}}/Delete">Delete</a></td>
</tr>