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

(-)a/installer/data/mysql/atomicupdate/bug_33260_-_add_tools_view_generated_notices_permission.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "33260",
5
    description => "Show message queue on staff interface and make notices printable",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
10
        $dbh->do(q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'view_generated_notices', 'View and print generated notices') });
11
12
        say $out "Added user permission view_generated_notices";
13
    },
14
};
(-)a/installer/data/mysql/mandatory/userpermissions.sql (+1 lines)
Lines 93-98 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
93
   (13, 'moderate_comments', 'Moderate patron comments'),
93
   (13, 'moderate_comments', 'Moderate patron comments'),
94
   (13, 'edit_notices', 'Define notices'),
94
   (13, 'edit_notices', 'Define notices'),
95
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
95
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
96
   (13, 'view_generated_notices', 'View and print generated notices'),
96
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
97
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
97
   (13, 'view_system_logs', 'Browse the system logs'),
98
   (13, 'view_system_logs', 'Browse the system logs'),
98
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
99
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+5 lines)
Lines 527-532 Link Here
527
            Define notices
527
            Define notices
528
        </span>
528
        </span>
529
        <span class="permissioncode">([% name | html %])</span>
529
        <span class="permissioncode">([% name | html %])</span>
530
    [%- CASE 'view_generated_notices' -%]
531
        <span class="sub_permission view_generated_notices_subpermission">
532
            View and print generated notices
533
        </span>
534
        <span class="permissioncode">([% name | html %])</span>
530
    [%- CASE 'edit_patrons' -%]
535
    [%- CASE 'edit_patrons' -%]
531
        <span class="sub_permission edit_patrons_subpermission">
536
        <span class="sub_permission edit_patrons_subpermission">
532
            Perform batch modification of patrons
537
            Perform batch modification of patrons
(-)a/t/Koha/Auth/Permissions.t (-1 / +1 lines)
Lines 249-254 subtest 'superlibrarian tests' => sub { Link Here
249
        'CAN_user_tools_edit_calendar'                              => 1,
249
        'CAN_user_tools_edit_calendar'                              => 1,
250
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
250
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
251
        'CAN_user_tools_edit_notices'                               => 1,
251
        'CAN_user_tools_edit_notices'                               => 1,
252
        'CAN_user_tools_view_generated_notices'                     => 1,
252
        'CAN_user_tools_edit_patrons'                               => 1,
253
        'CAN_user_tools_edit_patrons'                               => 1,
253
        'CAN_user_tools_edit_quotes'                                => 1,
254
        'CAN_user_tools_edit_quotes'                                => 1,
254
        'CAN_user_tools_export_catalog'                             => 1,
255
        'CAN_user_tools_export_catalog'                             => 1,
255
- 

Return to bug 33260