Bug 39807 - Problems with search bar on intranet mainpage for users with limited permissions
Summary: Problems with search bar on intranet mainpage for users with limited permissions
Status: Failed QA
Alias: None
Product: Koha
Classification: Unclassified
Component: Staff interface (show other bugs)
Version: Main
Hardware: All All
: P5 - low normal
Assignee: Lucas Gass (lukeg)
QA Contact: Testopia
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2025-05-01 17:18 UTC by Lucas Gass (lukeg)
Modified: 2025-12-13 08:12 UTC (History)
2 users (show)

See Also:
GIT URL:
Initiative type: ---
Sponsorship status: ---
Comma delimited list of Sponsors:
Crowdfunding goal: 0
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:
Circulation function:


Attachments
Bug 39807: Fix active tab in home-search.inc (1.70 KB, patch)
2025-10-16 13:13 UTC, Lucas Gass (lukeg)
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Lucas Gass (lukeg) 2025-05-01 17:18:11 UTC
To recreate:

1. Make or find a staff member with staff access and list_borrowers permission. 
2. Visit the intranet mainpage and notice the 'Search catalog' label but there is no search box. 
3. Click 'Search catalog', the search bar now appears 
4. Add the 'edit_borrowers' permission
5. Revisit the intranet mainpage and notice both 'Search patrons' and 'Search catalog' links
6. Click on 'Search catalog', now you see both search bars stacked up.
Comment 1 Lucas Gass (lukeg) 2025-10-16 13:13:57 UTC
Created attachment 188007 [details] [review]
Bug 39807: Fix active tab in home-search.inc

To test:

1. Make or find a staff member with staff access and list_borrowers permission.
2. Visit the intranet mainpage and notice the 'Search catalog' label but there is no search box.
3. Click 'Search catalog', the search bar now appears
4. Add the 'edit_borrowers' permission
5. Revisit the intranet mainpage and notice both 'Search patrons' and 'Search catalog' links
6. Click on 'Search catalog', now you see both search bars stacked up.
7. APPLY PATCH
8. Try all the steps again and make sure the search bars are working properly for the limited permission user.
9. Try logging in as a superlibrarian and making sure everything still works.
Comment 2 David Nind 2025-12-13 08:12:42 UTC
After the patch with only catalogue and list_borrowers permissions, I still only get the "Search catalog" link (without the search box) as in step 2.

After the patch with the additional edit_borrowers permissions, things now work as expected.