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 (+16 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(
11
            q{ INSERT IGNORE INTO permissions (module_bit, code, description) VALUES (13, 'view_generated_notices', 'View and print generated notices') }
12
        );
13
14
        say $out "Added user permission view_generated_notices";
15
    },
16
};
(-)a/installer/data/mysql/mandatory/userpermissions.sql (+1 lines)
Lines 100-105 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
100
   (13, 'moderate_comments', 'Moderate patron comments'),
100
   (13, 'moderate_comments', 'Moderate patron comments'),
101
   (13, 'edit_notices', 'Define notices'),
101
   (13, 'edit_notices', 'Define notices'),
102
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
102
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
103
   (13, 'view_generated_notices', 'View and print generated notices'),
103
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
104
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
104
   (13, 'view_system_logs', 'Browse the system logs'),
105
   (13, 'view_system_logs', 'Browse the system logs'),
105
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
106
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+5 lines)
Lines 557-562 Link Here
557
            Define notices
557
            Define notices
558
        </span>
558
        </span>
559
        <span class="permissioncode">([% name | html %])</span>
559
        <span class="permissioncode">([% name | html %])</span>
560
    [%- CASE 'view_generated_notices' -%]
561
        <span class="sub_permission view_generated_notices_subpermission">
562
            View and print generated notices
563
        </span>
564
        <span class="permissioncode">([% name | html %])</span>
560
    [%- CASE 'edit_patrons' -%]
565
    [%- CASE 'edit_patrons' -%]
561
        <span class="sub_permission edit_patrons_subpermission">
566
        <span class="sub_permission edit_patrons_subpermission">
562
            Perform batch modification of patrons
567
            Perform batch modification of patrons
(-)a/t/Koha/Auth/Permissions.t (-1 / +1 lines)
Lines 259-264 subtest 'superlibrarian tests' => sub { Link Here
259
        'CAN_user_tools_edit_calendar'                              => 1,
259
        'CAN_user_tools_edit_calendar'                              => 1,
260
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
260
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
261
        'CAN_user_tools_edit_notices'                               => 1,
261
        'CAN_user_tools_edit_notices'                               => 1,
262
        'CAN_user_tools_view_generated_notices'                     => 1,
262
        'CAN_user_tools_edit_patrons'                               => 1,
263
        'CAN_user_tools_edit_patrons'                               => 1,
263
        'CAN_user_tools_edit_quotes'                                => 1,
264
        'CAN_user_tools_edit_quotes'                                => 1,
264
        'CAN_user_tools_export_catalog'                             => 1,
265
        'CAN_user_tools_export_catalog'                             => 1,
265
- 

Return to bug 33260