View | Details | Raw Unified | Return to bug 36867
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_36867.pl (+22 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "36867",
6
    description => "Update ILS-DI authorized IPs for existing installations to continue allowing all IPs",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        $dbh->do(
12
            q{
13
            UPDATE systempreferences SET value = "0:0:0:0/0" WHERE variable = 'ILS-DI:AuthorizedIPs' AND
14
            value = "" AND
15
            EXISTS (SELECT value FROM systempreferences WHERE variable='ILS-DI' AND value = 1);
16
        }
17
        );
18
19
        say $out
20
            "Updated system preference 'ILS-DI:AuthorizedIPs' to allow any IP where ILS-DI enabled and no authorized IPs specified";
21
    },
22
};
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/web_services.pref (-3 / +2 lines)
Lines 99-108 Web services: Link Here
99
                0: Disable
99
                0: Disable
100
            - "ILS-DI services for OPAC users (available at: /cgi-bin/koha/ilsdi.pl)"
100
            - "ILS-DI services for OPAC users (available at: /cgi-bin/koha/ilsdi.pl)"
101
        -
101
        -
102
            - Allow IP addresses
102
            - Allow only IP addresses
103
            - pref: ILS-DI:AuthorizedIPs
103
            - pref: ILS-DI:AuthorizedIPs
104
              class: Text
104
              class: Text
105
            - to use the ILS-DI services (when enabled). Separate the IP addresses with commas and without spaces. Leave the field blank to allow any IP address.
105
            - to use the ILS-DI services (when enabled). Separate the IP addresses with commas and without spaces. Enter '0:0:0:0/0' to allow any IP.
106
    Mana KB:
106
    Mana KB:
107
        -
107
        -
108
            - pref: Mana
108
            - pref: Mana
109
- 

Return to bug 36867