Koha-clms/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
..
AdditionalContents.pm Bug 31383: (bug 29691 follow-up) Remove get_opac_news_by_id 2023-10-23 10:45:34 -03:00
Asset.pm
…
AudioAlerts.pm
…
AuthClient.pm Bug 33708: Provide non-public endpoint for OAuth/OIDC for staff interface 2023-05-18 11:35:15 -03:00
AuthorisedValues.pm Bug 33568: Status 2024-04-05 15:34:48 +02:00
Biblio.pm Bug 35790: Remove Koha::Template::Plugin::Biblio::CanArticleRequest 2024-03-22 12:26:45 +01:00
Branches.pm Bug 36941: Limit login branch list when IP restriction enabled 2024-06-28 13:49:26 +02:00
Categories.pm Bug 32127: Sort by description in Koha::Template::Plugin::Categories 2023-04-14 11:35:23 -03:00
CirculationRules.pm Bug 30901: Add POD for Koha::Template::Plugin::CirculationRules 2022-08-16 10:43:10 -03:00
ClassSources.pm Bug 11844: Fix QA issues (POD, TT filters, file exec flag) 2023-05-16 12:58:38 +02:00
Context.pm
…
Desks.pm
…
ExtendedAttributeTypes.pm Bug 34519: (follow-up) fix QA tool complaints 2023-11-08 17:52:39 -03:00
Frameworks.pm Bug 33607: Handle default framework 2023-05-16 15:17:44 -03:00
HtmlId.pm
…
HtmlTags.pm
…
I18N.pm
…
ItemTypes.pm
…
JSConsents.pm Bug 27378: Introduce cookie consent to OPAC and staff client 2023-09-12 09:45:07 -03:00
Koha.pm Bug 36700: Fix underscore in CSRF header 2024-05-01 13:40:12 +01:00
KohaDates.pm Bug 33029: Add wrapper method for dt_from_string to KohaDates template toolkit plugin 2023-07-06 12:24:17 -03:00
KohaPlugins.pm Bug 31503: (follow-up) Add 'feature_enabled' to Koha::Plugins 2023-10-25 10:35:22 -03:00
KohaSpan.pm
…
Languages.pm
…
NoticeTemplates.pm Bug 29393: Prevent SQL errors when SQL strict mode is set 2024-04-29 17:38:00 +02:00
Notices.pm Bug 32986: (follow-up) Fix CircAutoPrintQuickSlip and remove unecessary module usage 2023-11-08 17:59:35 -03:00
Price.pm
…
Registers.pm
…
Remove_MARC_punctuation.pm
…
TablesSettings.pm Bug 34913: DataTables upgrade: Update CSS and option names 2024-01-26 15:13:40 +01:00
To.pm
…
raw.pm
…