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 101-106 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
101
   (13, 'moderate_comments', 'Moderate patron comments'),
101
   (13, 'moderate_comments', 'Moderate patron comments'),
102
   (13, 'edit_notices', 'Define notices'),
102
   (13, 'edit_notices', 'Define notices'),
103
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
103
   (13, 'edit_notice_status_triggers', 'Set notice/status triggers for overdue items'),
104
   (13, 'view_generated_notices', 'View and print generated notices'),
104
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
105
   (13, 'edit_quotes', 'Edit quotes for quote-of-the-day feature'),
105
   (13, 'view_system_logs', 'Browse the system logs'),
106
   (13, 'view_system_logs', 'Browse the system logs'),
106
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
107
   (13, 'inventory', 'Perform inventory (stocktaking) of your catalog'),
Lines 164-167 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
164
   (25, 'takepayment', 'Access the point of sale page and take payments'),
165
   (25, 'takepayment', 'Access the point of sale page and take payments'),
165
   (26, 'manage_problem_reports', 'Manage OPAC problem reports'),
166
   (26, 'manage_problem_reports', 'Manage OPAC problem reports'),
166
   (27, 'manage_recalls', 'Manage recalls for patrons')
167
   (27, 'manage_recalls', 'Manage recalls for patrons')
167
;
168
;
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (+3 lines)
Lines 377-382 Link Here
377
    [%- CASE 'edit_notices' -%]
377
    [%- CASE 'edit_notices' -%]
378
        <span class="sub_permission edit_notices_subpermission"> Define notices </span>
378
        <span class="sub_permission edit_notices_subpermission"> Define notices </span>
379
        <span class="permissioncode">([% name | html %])</span>
379
        <span class="permissioncode">([% name | html %])</span>
380
    [%- CASE 'view_generated_notices' -%]
381
        <span class="sub_permission view_generated_notices_subpermission"> View and print generated notices </span>
382
        <span class="permissioncode">([% name | html %])</span>
380
    [%- CASE 'edit_patrons' -%]
383
    [%- CASE 'edit_patrons' -%]
381
        <span class="sub_permission edit_patrons_subpermission"> Perform batch modification of patrons </span>
384
        <span class="sub_permission edit_patrons_subpermission"> Perform batch modification of patrons </span>
382
        <span class="permissioncode">([% name | html %])</span>
385
        <span class="permissioncode">([% name | html %])</span>
(-)a/t/Koha/Auth/Permissions.t (-1 / +1 lines)
Lines 260-265 subtest 'superlibrarian tests' => sub { Link Here
260
        'CAN_user_tools_edit_calendar'                              => 1,
260
        'CAN_user_tools_edit_calendar'                              => 1,
261
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
261
        'CAN_user_tools_edit_notice_status_triggers'                => 1,
262
        'CAN_user_tools_edit_notices'                               => 1,
262
        'CAN_user_tools_edit_notices'                               => 1,
263
        'CAN_user_tools_view_generated_notices'                     => 1,
263
        'CAN_user_tools_edit_patrons'                               => 1,
264
        'CAN_user_tools_edit_patrons'                               => 1,
264
        'CAN_user_tools_edit_quotes'                                => 1,
265
        'CAN_user_tools_edit_quotes'                                => 1,
265
        'CAN_user_tools_export_catalog'                             => 1,
266
        'CAN_user_tools_export_catalog'                             => 1,
266
- 

Return to bug 33260