fixed an old unused var in client_locations which was allowing someone to delete a primary location which shouldnt be allowed

This commit is contained in:
johnnyq 2023-08-22 15:48:55 -04:00
parent 715938f367
commit 94e56f6d68
1 changed files with 1 additions and 1 deletions

View File

@ -117,7 +117,7 @@ $num_rows = mysqli_fetch_row(mysqli_query($mysqli, "SELECT FOUND_ROWS()"));
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#editLocationModal<?php echo $location_id; ?>">
<i class="fas fa-fw fa-edit mr-2"></i>Edit
</a>
<?php if ($session_user_role == 3 && $location_id !== $primary_location) { ?>
<?php if ($session_user_role == 3 && $location_primary == 0) { ?>
<div class="dropdown-divider"></div>
<a class="dropdown-item text-danger" href="post.php?archive_location=<?php echo $location_id; ?>">
<i class="fas fa-fw fa-archive mr-2"></i>Archive