From 6ec0be1d489029dfe38fbfccbdc0e34ee15d21b3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fran=C3=A7ois=20Jacquet?= Date: Tue, 12 Dec 2023 23:39:45 +0100 Subject: [PATCH] Fix only display "Delete Account" button if AllowEdit() --- CHANGES.md | 1 + modules/Food_Service/Users/Accounts.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGES.md b/CHANGES.md index 6f1d298e1..050670cb8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -4,6 +4,7 @@ Changes in 11.3.3 ----------------- - Fix PHP 8.1 fatal error: array_key_exists() arg 2 ($array) must be of type array in ListOutput.fnc.php +- Fix only display "Delete Account" button if AllowEdit() in Accounts.php Changes in 11.3.2 ----------------- diff --git a/modules/Food_Service/Users/Accounts.php b/modules/Food_Service/Users/Accounts.php index f7826ae4f..ba9b03b8e 100644 --- a/modules/Food_Service/Users/Accounts.php +++ b/modules/Food_Service/Users/Accounts.php @@ -149,7 +149,7 @@ DrawHeader( '', SubmitButton() . - ( $staff['BALANCE'] == 0 ? + ( $staff['BALANCE'] == 0 && AllowEdit() ? '