updating user management
This commit is contained in:
@@ -69,7 +69,7 @@ include "perms_functions.php";
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">2</th>
|
||||
<td>Delete/list user</td>
|
||||
<td>Delete/list/manage user <a data-bs-target="#warning" data-bs-toggle="modal" href="#warning2">(Warning!)</a></td>
|
||||
<td><input type="checkbox" name="delete_user"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
@@ -103,7 +103,7 @@ include "perms_functions.php";
|
||||
<td><input type="checkbox" name="add_clients"></td>
|
||||
</tr>
|
||||
<tr>
|
||||
<th scope="row">8</th>
|
||||
<th scope="row">9</th>
|
||||
<td>Delete/list clients</td>
|
||||
<td><input type="checkbox" name="delete_clients"></td>
|
||||
</tr>
|
||||
@@ -198,6 +198,22 @@ include "perms_functions.php";
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal fade" id="warning2" tabindex="-1" aria-labelledby="warning2_label" aria-hidden="false">
|
||||
<div class="modal-dialog">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h5 class="modal-title" id="warning2_label">User manage permission warning</h5>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
A user with the permission "manage_user" can change all permissions of all users.<br>
|
||||
Including permissions which the user, who has this permission does not have.<br>
|
||||
This can be used for privilege escalation!<br>
|
||||
Please only allow a few trusted users this permission!
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
|
||||
Reference in New Issue
Block a user