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

(-)a/installer/data/mysql/atomicupdate/bug_31791.pl (+26 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number  => "31791",
5
    description => "Add the ability to lock record modification",
6
    up          => sub {
7
        my ($args) = @_;
8
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
10
        $dbh->do(
11
            q{
12
            INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
13
            ( 9, 'edit_locked_records', 'Edit locked records');
14
        }
15
        );
16
        say $out "Added new permission 'editcatalogue.edit_locked_records'";
17
18
        $dbh->do(
19
            q{
20
            INSERT IGNORE INTO permissions (module_bit, code, description) VALUES
21
             ( 9, 'set_record_sources', 'Set record source for records');
22
        }
23
        );
24
        say $out "Added new permission 'editcatalogue.set_record_sources'";
25
    },
26
};
(-)a/installer/data/mysql/mandatory/userpermissions.sql (-1 / +2 lines)
Lines 61-66 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
61
   ( 9, 'manage_item_groups', 'Create, update and delete item groups, add or remove items from a item groups'),
61
   ( 9, 'manage_item_groups', 'Create, update and delete item groups, add or remove items from a item groups'),
62
   ( 9, 'manage_item_editor_templates', 'Update and delete item editor template owned by others'),
62
   ( 9, 'manage_item_editor_templates', 'Update and delete item editor template owned by others'),
63
   ( 9, 'edit_any_item', 'Edit any item regardless of home library'),
63
   ( 9, 'edit_any_item', 'Edit any item regardless of home library'),
64
   ( 9, 'edit_locked_records', 'Edit locked records'),
65
   ( 9, 'set_record_sources', 'Set record source'),
64
   (10, 'payout', 'Perform account payout action'),
66
   (10, 'payout', 'Perform account payout action'),
65
   (10, 'refund', 'Perform account refund action'),
67
   (10, 'refund', 'Perform account refund action'),
66
   (10, 'discount', 'Perform account discount action'),
68
   (10, 'discount', 'Perform account discount action'),
67
- 

Return to bug 31791