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

(-)a/installer/data/mysql/atomicupdate/bug_20256.perl (+11 lines)
Line 0 Link Here
1
$DBversion = 'XXX'; # will be replaced by the RM
2
if( CheckVersion( $DBversion ) ) {
3
    $dbh->do( "INSERT IGNORE INTO permissions (module_bit, code, description) VALUES ( 9, 'edit_any_item', 'Edit any item reguardless of home library');" );
4
5
    if ( !column_exists( 'library_groups', 'ft_limit_item_editing' ) ) {
6
        $dbh->do( "ALTER TABLE library_groups ADD COLUMN ft_limit_item_editing tinyint(1) NOT NULL DEFAULT 0 AFTER ft_hide_patron_info" );
7
    }
8
9
    SetVersion( $DBversion );
10
    print "Upgrade to $DBversion done (Bug 20256 - Add ability to limit editing of items to home library)\n";
11
}
(-)a/installer/data/mysql/kohastructure.sql (+1 lines)
Lines 3292-3297 CREATE TABLE `library_groups` ( Link Here
3292
  `title` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Short description of the goup',
3292
  `title` varchar(100) COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Short description of the goup',
3293
  `description` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Longer explanation of the group, if necessary',
3293
  `description` mediumtext COLLATE utf8mb4_unicode_ci DEFAULT NULL COMMENT 'Longer explanation of the group, if necessary',
3294
  `ft_hide_patron_info` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Turn on the feature ''Hide patron''s info'' for this group',
3294
  `ft_hide_patron_info` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Turn on the feature ''Hide patron''s info'' for this group',
3295
  `ft_limit_item_editing` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Turn on the feature "Limit item editing by group" for this group',
3295
  `ft_search_groups_opac` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group for staff side search groups',
3296
  `ft_search_groups_opac` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group for staff side search groups',
3296
  `ft_search_groups_staff` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group for opac side search groups',
3297
  `ft_search_groups_staff` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group for opac side search groups',
3297
  `ft_local_hold_group` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group to identify libraries as pick up location for holds',
3298
  `ft_local_hold_group` tinyint(1) NOT NULL DEFAULT 0 COMMENT 'Use this group to identify libraries as pick up location for holds',
(-)a/installer/data/mysql/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 48-53 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
48
   ( 9, 'edit_items', 'Edit items'),
48
   ( 9, 'edit_items', 'Edit items'),
49
   ( 9, 'edit_items_restricted', 'Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)'),
49
   ( 9, 'edit_items_restricted', 'Limit item modification to subfields defined in the SubfieldsToAllowForRestrictedEditing preference (please note that edit_item is still required)'),
50
   ( 9, 'delete_all_items', 'Delete all items at once'),
50
   ( 9, 'delete_all_items', 'Delete all items at once'),
51
   ( 9, 'edit_any_item', 'Edit any item reguardless of home library'),
51
   (10, 'payout', 'Perform account payout action'),
52
   (10, 'payout', 'Perform account payout action'),
52
   (10, 'refund', 'Perform account refund action'),
53
   (10, 'refund', 'Perform account refund action'),
53
   (10, 'discount', 'Perform account discount action'),
54
   (10, 'discount', 'Perform account discount action'),
54
- 

Return to bug 20256