mirror of
https://github.com/itflow-org/itflow
synced 2026-02-28 19:04:52 +00:00
Client Portal - Don't allow tech contacts to edit themselves
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user