Znuny
Znuny copied to clipboard
Bug - AdminACL: Wrong fallback for ACL keys level 3 variable
Environment
- Server OS: -
- Browser: -
- Znuny version: -
Expected behavior
Admin screen for editing ACLs loads without error.
Actual behavior
When loading the screen, an internal server error occurs (derived from testing in OTOBO).
How to reproduce
Steps to reproduce the behavior:
- Go to the system configuration
- Search for 'ACLKeysLevel3'
- Disable all found settings and deploy the changes
- Navigate to AdminACL
- Try to add a new ACL or edit an existing one
Additional information
If the understanding of the Znuny code is correct, you are also affected by a minor bug reported by me in https://github.com/RotherOSS/otobo/issues/4059. Relevant code:
https://github.com/znuny/Znuny/blob/7f7219efa57683f70a928d4ce960c713fa51da13/Kernel/Modules/AdminACL.pm#L791-L797
The cause of problem is that an array ref is used as fallback for the ACLKeysLevel3 variable when instead it should be a hash ref.