From eb0929899a5daccca5cab68dd4be6003bf00910d Mon Sep 17 00:00:00 2001 From: QuentinArguillere Date: Mon, 27 Jun 2022 11:41:42 +0200 Subject: [PATCH] =?UTF-8?q?Always=20Hide=20edit/delete=20buttons=20for=20L?= =?UTF-8?q?DAP=20contact=20details=20view=20(could=20still=20appear=20if?= =?UTF-8?q?=20accessed=20through=20a=20=E2=80=9Cprevious=E2=80=9D=20button?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Classes/ContactDetailsView.m | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Classes/ContactDetailsView.m b/Classes/ContactDetailsView.m index db3968e48..cb3000e29 100644 --- a/Classes/ContactDetailsView.m +++ b/Classes/ContactDetailsView.m @@ -284,6 +284,9 @@ if (IPAD && self.contact == NULL) { _editButton.hidden = TRUE; _deleteButton.hidden = TRUE; + } else if (self.contact != NULL && self.contact.createdFromLdap) { + _editButton.hidden = TRUE; + _deleteButton.hidden = TRUE; } PhoneMainView.instance.currentName = _nameLabel.text; // Update presence for contact