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

--- Comment #1 from Matt Blenkinsop <[email protected]> ---
Created attachment 200264
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=200264&action=edit
Bug 42623: Limit report library runtime parameters based on LimitReportsBy

This patch takes the report branch limits in the LimitReportsBy syspref and
applies them to the runtime parameters in a library report

Test plan:
1. Apply patch and restart_all
2. Create a report with a Library runtime parameter
3. Ensure LimitReportsBy is set to No restriction
4. Run the report, all libraries should show in the dropdown for the library
runtime parameter
5. Set LimitReportsBy to Library
6. Run the report again, this time the parameter should be limited to your
logged in branch
7. Set LimitReportsBy to Library group
8. Create a library group, add some branches to it including your logged in
branch
9. Run the report, this time only the branches you added in your group should
be visible
10. On the report screen, amend the URL to have a branchcode that is not in
your library group (in the 'sql_params=')
11. You should see an error message when submitting the request that you are
not authorised

-- 
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
_______________________________________________
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