Add user permissions for reload and restart

This commit is contained in:
Eduardo Silva
2025-04-11 11:05:20 -03:00
parent b140362e86
commit a58d233546
9 changed files with 114 additions and 23 deletions

View File

@@ -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>