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

(-)a/installer/data/mysql/atomicupdate/bug_25045.perl (-2 / +3 lines)
Lines 8-15 if( CheckVersion( $DBversion ) ) { Link Here
8
        INSERT IGNORE INTO `systempreferences`
8
        INSERT IGNORE INTO `systempreferences`
9
            (`variable`,`value`,`explanation`,`options`,`type`)
9
            (`variable`,`value`,`explanation`,`options`,`type`)
10
        VALUES
10
        VALUES
11
            ('RESTPublicAnonymousRequests', $opac_public, NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access'.','YesNo');
11
            ('RESTPublicAnonymousRequests', $opac_public, NULL,"If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access.",'YesNo');
12
    });
12
    });
13
13
14
    NewVersion( $DBversion, 25045, "Add a way to restrict anonymous access to public routes (OpacPublic behaviour)");
14
    print "Upgrade to $DBversion done ( Bug 25045 - Add a way to restrict anonymous access to public routes (OpacPublic behaviour) )\n";
15
    SetVersion ($DBversion);
15
}
16
}
(-)a/installer/data/mysql/sysprefs.sql (-2 / +1 lines)
Lines 530-536 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
530
('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo'),
530
('RESTBasicAuth','0',NULL,'If enabled, Basic authentication is enabled for the REST API.','YesNo'),
531
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
531
('RESTdefaultPageSize','20','','Default page size for endpoints listing objects','Integer'),
532
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
532
('RESTOAuth2ClientCredentials','0',NULL,'If enabled, the OAuth2 client credentials flow is enabled for the REST API.','YesNo'),
533
('RESTPublicAnonymousRequests','1',NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access'.','YesNo'),
533
('RESTPublicAnonymousRequests','1',NULL,'If enabled, the API will allow anonymous access to public routes that don\'t require authenticated access.','YesNo'),
534
('RESTPublicAPI','1',NULL,'If enabled, the REST API will expose the /public endpoints.','YesNo'),
534
('RESTPublicAPI','1',NULL,'If enabled, the REST API will expose the /public endpoints.','YesNo'),
535
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
535
('RestrictedPageLocalIPs','',NULL,'Beginning of IP addresses considered as local (comma separated ex: "127.0.0,127.0.2")','Free'),
536
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
536
('RestrictedPageContent','',NULL,'HTML content of the restricted page','TextArea'),
537
- 

Return to bug 25045