Skip to content

Commit

Permalink
Users - Prevent modifying yourself via users.php, should use profile
Browse files Browse the repository at this point in the history
  • Loading branch information
wrongecho committed Sep 30, 2023
1 parent 203ef85 commit d02d2d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions users.php
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,7 @@
<td class="text-center"><?php echo $mfa_status_display; ?></td>
<td><?php echo $last_login; ?></td>
<td>
<?php if ($user_id !== $session_user_id) { // Prevent modifying self ?>
<div class="dropdown dropleft text-center">
<button class="btn btn-secondary btn-sm" type="button" data-toggle="dropdown">
<i class="fas fa-ellipsis-h"></i>
Expand All @@ -166,6 +167,7 @@
</a>
</div>
</div>
<?php } ?>
</td>
</tr>

Expand Down

0 comments on commit d02d2d4

Please sign in to comment.