Koha-clms/t/db_dependent/Koha/Template/Plugin
Nick Clemens 492645a9d2
Bug 36941: Limit login branch list when IP restriction enabled
This patch adds a new 'ip_limit' option to Koha::Template:Plugin::Branches

To test:
1 - Set some branches in the system to have random IPs
2 - Set one branch to have your IP
    To find the IP in KTD I:
    Enabled ILS-DI
    Set ILS-DI:AuthorizedIPs to 1.1.1.1
    Visit:
    http://localhost:8080/cgi-bin/koha/ilsdi.pl?service=GetAvailability&id=248&id_type=biblio
    And note the unauthorized IP listed
3 - Log out, confirm all branches are listed
4 - Log in, enable StaffLoginRestrictLibraryByIP
5 - Log out, confirm branches with IPs are removed
6 - Confirm branch matching your IP is listed
7 - Choose any of the branches and login
8 - Confirm login works

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
2024-06-28 13:49:26 +02:00
..
Asset.t Bug 32910: (follow-up) Adjust Koha::Template::Plugin::Asset tests 2023-06-14 09:21:59 -03:00
Branches.t Bug 36941: Limit login branch list when IP restriction enabled 2024-06-28 13:49:26 +02:00
CirculationRules.t Bug 32496: Reduce unnecessary unblessings of objects in Circulation.pm 2023-09-22 10:52:39 -03:00
ClassSources.t
…
ExtendedAttributeTypes.t Bug 34519: (follow-up) fix QA tool complaints 2023-11-08 17:52:39 -03:00
ItemTypes.t
…
JSConsents.t Bug 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03:00
Koha.t Bug 35955: Add tests 2024-03-01 10:55:53 +01:00
KohaPlugins.t
…
Notices.t Bug 32986: (follow-up) Unit tests 2023-11-08 17:59:38 -03:00
Registers.t Bug 36367: Remove _new_userenv 2024-06-14 11:17:17 +01:00
TablesSettings.t
…