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 / +2 lines)
Lines 108-113 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
108
   (13, 'moderate_comments', 'Moderate patron comments'),
108
   (13, 'moderate_comments', 'Moderate patron comments'),
109
   (13, 'edit_notices', 'Define notices'),
109
   (13, 'edit_notices', 'Define notices'),
110
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
110
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
111
   (13, 'view_generated_notices', 'View and print generated notices'),
111
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
112
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
112
   (13, 'view_system_logs', 'Browse the system logs'),
113
   (13, 'view_system_logs', 'Browse the system logs'),
113
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
114
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
Lines 172-175 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
172
   (25, 'takepayment', 'Access the point of sale page and take payments'),
173
   (25, 'takepayment', 'Access the point of sale page and take payments'),
173
   (26, 'manage_problem_reports', 'Manage OPAC problem reports'),
174
   (26, 'manage_problem_reports', 'Manage OPAC problem reports'),
174
   (27, 'manage_recalls', 'Manage recalls for patrons')
175
   (27, 'manage_recalls', 'Manage recalls for patrons')
175
;
176
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+3 lines)
Lines 407-412 Link Here
407
    [%- CASE 'edit_notices' -%]
407
    [%- CASE 'edit_notices' -%]
408
        <span class="sub_permission edit_notices_subpermission"> Define notices </span>
408
        <span class="sub_permission edit_notices_subpermission"> Define notices </span>
409
        <span class="permissioncode">([% name | html %])</span>
409
        <span class="permissioncode">([% name | html %])</span>
410
    [%- CASE 'view_generated_notices' -%]
411
        <span class="sub_permission view_generated_notices_subpermission"> View and print generated notices </span>
412
        <span class="permissioncode">([% name | html %])</span>
410
    [%- CASE 'edit_patrons' -%]
413
    [%- CASE 'edit_patrons' -%]
411
        <span class="sub_permission edit_patrons_subpermission"> Perform batch modification of patrons </span>
414
        <span class="sub_permission edit_patrons_subpermission"> Perform batch modification of patrons </span>
412
        <span class="permissioncode">([% name | html %])</span>
415
        <span class="permissioncode">([% name | html %])</span>
(-)a/t/Koha/Auth/Permissions.t (-1 / +1 lines)
Lines 269-274 subtest 'superlibrarian tests' => sub { Link Here
269
        'CAN_user_tools_edit_calendar'                              => 1,
269
        'CAN_user_tools_edit_calendar'                              => 1,
270
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
270
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
271
        'CAN_user_tools_edit_notices'                               => 1,
271
        'CAN_user_tools_edit_notices'                               => 1,
272
        'CAN_user_tools_view_generated_notices'                     => 1,
272
        'CAN_user_tools_edit_patrons'                               => 1,
273
        'CAN_user_tools_edit_patrons'                               => 1,
273
        'CAN_user_tools_edit_quotes'                                => 1,
274
        'CAN_user_tools_edit_quotes'                                => 1,
274
        'CAN_user_tools_export_catalog'                             => 1,
275
        'CAN_user_tools_export_catalog'                             => 1,
275
- 

Return to bug 33260