mirror of
https://github.com/itflow-org/itflow
synced 2026-03-19 12:14:50 +00:00
Merge pull request #727 from wrongecho/settings-user-prevent-self-mod
Users - Prevent modifying yourself via users.php, should use profile
This commit is contained in:
@@ -143,6 +143,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
<td class="text-center"><?php echo $mfa_status_display; ?></td>
|
<td class="text-center"><?php echo $mfa_status_display; ?></td>
|
||||||
<td><?php echo $last_login; ?></td>
|
<td><?php echo $last_login; ?></td>
|
||||||
<td>
|
<td>
|
||||||
|
<?php if ($user_id !== $session_user_id) { // Prevent modifying self ?>
|
||||||
<div class="dropdown dropleft text-center">
|
<div class="dropdown dropleft text-center">
|
||||||
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
|
||||||
<i class="fas fa-ellipsis-h"></i>
|
<i class="fas fa-ellipsis-h"></i>
|
||||||
@@ -166,6 +167,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
|
|||||||
</a>
|
</a>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
<?php } ?>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user