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

--- Comment #50 from Tomás Cohen Arazi (tcohen) <[email protected]> ---
Created attachment 199789
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=199789&action=edit
Bug 42508: Use libraries_where_can_see_patrons for search scoping

Replaces the simple IndependentBranches check with the proper
libraries_where_can_see_patrons method, which accounts for both
IndependentBranches and library group visibility.

The controller passes the restricted branchcode list to the search
backend. If the list is empty, the user can see all patrons.

Test plan:
1. Apply patch
2. Enable IndependentBranches
3. Log in as a non-superlibrarian staff member
4. Search patrons
=> SUCCESS: Only patrons from visible libraries are returned
5. Log in as superlibrarian
=> SUCCESS: All patrons visible
6. Sign off :-D

-- 
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