mirror of
https://github.com/eduardogsilva/wireguard_webadmin.git
synced 2025-08-27 05:41:15 +00:00
Add user permissions for reload and restart
This commit is contained in:
@@ -1,15 +1,14 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<table class="table table-striped">
|
||||
<table class="table table-striped table-bordered">
|
||||
<thead>
|
||||
<tr>
|
||||
<th>Username</th>
|
||||
<th>User Level</th>
|
||||
<th>Peer Groups</th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th></th>
|
||||
<th colspan="4">Permissions</th>
|
||||
<th><i class="far fa-edit"></i></th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
@@ -26,16 +25,29 @@
|
||||
Any
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="width: 1%; white-space: nowrap;">
|
||||
{% if user_acl.enable_restart %}
|
||||
<i class="fas fa-power-off" title="Restart Enabled"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
<td style="width: 1%; white-space: nowrap;">
|
||||
{% if user_acl.enable_reload %}
|
||||
<i class="fas fa-sync-alt" title="Reload Enabled"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td style="width: 1%; white-space: nowrap;">
|
||||
{% if user_acl.enable_console %}
|
||||
<i class="fas fa-terminal" title="Console Enabled"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td style="width: 1%; white-space: nowrap;">
|
||||
{% if user_acl.enable_enhanced_filter %}
|
||||
<i class="fas fa-eye-slash" title="Enhanced Filter Enabled"></i>
|
||||
{% endif %}
|
||||
</td>
|
||||
|
||||
<td style="width: 1%; white-space: nowrap;">
|
||||
<a href="/user/manage/?uuid={{ user_acl.uuid }}" ><i class="far fa-edit"></i></a>
|
||||
</td>
|
||||
|
Reference in New Issue
Block a user