Client Portal - Don't allow tech contacts to edit themselves

This commit is contained in:
wrongecho 2025-06-25 09:44:57 +01:00
parent 1ee50fdfde
commit a1b99c46c7
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ if ($row) {
</div>
</div>
<?php if ($contact_primary) { echo "<i>Cannot edit the primary contact</i>"; } else { ?>
<?php if ($contact_primary || $contact_id == $_SESSION['contact_id']) { echo "<i>Cannot edit this contact</i>"; } else { ?>
<button class="btn btn-primary" name="edit_contact">Save</button>
<?php } ?>
</form>