https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=39142

--- Comment #24 from Martin Renvoize (ashimema) 
<[email protected]> ---
Created attachment 189756
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=189756&action=edit
Bug 39142: (QA follow-up) Add unit tests for DISABLE_SYSPREF permission
checking

This commit adds a unit test for the syspref override permission checking
functionality to ensure:

- Users without debug permission cannot override system preferences via URL
parameters
- Users with debug permission can successfully override system preferences
- Superlibrarians maintain their ability to override system preferences
- The permission checking logic works correctly with haspermission()

The test creates three test patrons:
1. Regular patron with only catalogue permission (should be denied)
2. Patron with debug permission (should be allowed)
3. Superlibrarian (should be allowed)

Tests verify both the permission checking and the actual environment variable
setting that controls syspref overrides.

Signed-off-by: Martin Renvoize <[email protected]>

-- 
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
https://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/

Reply via email to