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 98-103 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
98
   (13, 'moderate_comments', 'Moderate patron comments'),
98
   (13, 'moderate_comments', 'Moderate patron comments'),
99
   (13, 'edit_notices', 'Define notices'),
99
   (13, 'edit_notices', 'Define notices'),
100
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
100
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
101
   (13, 'view_generated_notices', 'View and print generated notices'),
101
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
102
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
102
   (13, 'view_system_logs', 'Browse the system logs'),
103
   (13, 'view_system_logs', 'Browse the system logs'),
103
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
104
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+5 lines)
Lines 547-552 Link Here
547
            Define notices
547
            Define notices
548
        </span>
548
        </span>
549
        <span class="permissioncode">([% name | html %])</span>
549
        <span class="permissioncode">([% name | html %])</span>
550
    [%- CASE 'view_generated_notices' -%]
551
        <span class="sub_permission view_generated_notices_subpermission">
552
            View and print generated notices
553
        </span>
554
        <span class="permissioncode">([% name | html %])</span>
550
    [%- CASE 'edit_patrons' -%]
555
    [%- CASE 'edit_patrons' -%]
551
        <span class="sub_permission edit_patrons_subpermission">
556
        <span class="sub_permission edit_patrons_subpermission">
552
            Perform batch modification of patrons
557
            Perform batch modification of patrons
(-)a/t/Koha/Auth/Permissions.t (-1 / +1 lines)
Lines 255-260 subtest 'superlibrarian tests' => sub { Link Here
255
        'CAN_user_tools_edit_calendar'                              => 1,
255
        'CAN_user_tools_edit_calendar'                              => 1,
256
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
256
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
257
        'CAN_user_tools_edit_notices'                               => 1,
257
        'CAN_user_tools_edit_notices'                               => 1,
258
        'CAN_user_tools_view_generated_notices'                     => 1,
258
        'CAN_user_tools_edit_patrons'                               => 1,
259
        'CAN_user_tools_edit_patrons'                               => 1,
259
        'CAN_user_tools_edit_quotes'                                => 1,
260
        'CAN_user_tools_edit_quotes'                                => 1,
260
        'CAN_user_tools_export_catalog'                             => 1,
261
        'CAN_user_tools_export_catalog'                             => 1,
261
- 

Return to bug 33260