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

(-)a/installer/data/mysql/atomicupdate/bug_20100.perl (+9 lines)
Line 0 Link Here
1
$DBversion = 'XXX';  # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( q|
4
INSERT IGNORE INTO systempreferences ( value, variable, options, explanation, type ) VALUES ( '0', 'ProtectSuperlibPrivs', NULL, 'If enabled, non-superlibrarians cannot set superlibrarian privileges', 'YesNo' );
5
    |);
6
7
    SetVersion( $DBversion );
8
    print "Upgrade to $DBversion done (Bug 20100: Should a non-superlibrarian be able to add superlibrarian privileges?)\n";
9
}
(-)a/installer/data/mysql/sysprefs.sql (+1 lines)
Lines 438-443 INSERT INTO systempreferences ( `variable`, `value`, `options`, `explanation`, ` Link Here
438
('printcirculationslips','1','','If ON, enable printing circulation receipts','YesNo'),
438
('printcirculationslips','1','','If ON, enable printing circulation receipts','YesNo'),
439
('PrintNoticesMaxLines','0','','If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.','Integer'),
439
('PrintNoticesMaxLines','0','','If greater than 0, sets the maximum number of lines an overdue notice will print. If the number of items is greater than this number, the notice will end with a warning asking the borrower to check their online account for a full list of overdue items.','Integer'),
440
('ProcessingFeeNote', '', NULL, 'Set the text to be recorded in the column note, table accountlines when the processing fee (defined in item type) is applied', 'textarea'),
440
('ProcessingFeeNote', '', NULL, 'Set the text to be recorded in the column note, table accountlines when the processing fee (defined in item type) is applied', 'textarea'),
441
('ProtectSuperlibPrivs','0',NULL,'If enabled, non-superlibrarians cannot set superlibrarian privileges','YesNo'),
441
('QueryAutoTruncate','1',NULL,'If ON, query truncation is enabled by default','YesNo'),
442
('QueryAutoTruncate','1',NULL,'If ON, query truncation is enabled by default','YesNo'),
442
('QueryFuzzy','1',NULL,'If ON, enables fuzzy option for searches','YesNo'),
443
('QueryFuzzy','1',NULL,'If ON, enables fuzzy option for searches','YesNo'),
443
('QueryStemming','1',NULL,'If ON, enables query stemming','YesNo'),
444
('QueryStemming','1',NULL,'If ON, enables query stemming','YesNo'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/preferences/patrons.pref (-1 / +7 lines)
Lines 205-210 Patrons: Link Here
205
         - pref: FailedLoginAttempts
205
         - pref: FailedLoginAttempts
206
           class: integer
206
           class: integer
207
         - failed login attempts.
207
         - failed login attempts.
208
     -
209
         - pref: ProtectSuperlibPrivs
210
           choices:
211
               yes: Allow only superlibrarians
212
               no: Do not block permitted non-superlibrarians
213
         - to access/change superlibrarian privileges.
214
208
    "Norwegian patron database":
215
    "Norwegian patron database":
209
     -
216
     -
210
         - pref: NorwegianPatronDBEnable
217
         - pref: NorwegianPatronDBEnable
211
- 

Return to bug 20100