Skip to content

Commit

Permalink
Fix only display "Delete Account" button if AllowEdit()
Browse files Browse the repository at this point in the history
  • Loading branch information
francoisjacquet committed Dec 12, 2023
1 parent e35250d commit 6ec0be1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
-----------------
Expand Down
2 changes: 1 addition & 1 deletion modules/Food_Service/Users/Accounts.php
Original file line number Diff line number Diff line change
Expand Up @@ -149,7 +149,7 @@
DrawHeader(
'',
SubmitButton() .
( $staff['BALANCE'] == 0 ?
( $staff['BALANCE'] == 0 && AllowEdit() ?
'<input type="button" value="' .
AttrEscape( _( 'Delete Account' ) ) .
// Change form action's modfunc to delete.
Expand Down

0 comments on commit 6ec0be1

Please sign in to comment.