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

(-)a/installer/data/mysql/atomicupdate/bug_37211.pl (+23 lines)
Line 0 Link Here
1
use Modern::Perl;
2
use Koha::Installer::Output qw(say_warning say_failure say_success say_info);
3
4
return {
5
    bug_number  => "37211",
6
    description => "Add permission updatecharges:edit_notes",
7
    up          => sub {
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
10
11
        # Do you stuffs here
12
        $dbh->do(
13
            q{
14
            INSERT INTO permissions (module_bit, code, description)
15
            VALUES (10, 'edit_notes', 'Edit accountline notes')
16
        }
17
        );
18
19
        # permissions
20
        say $out "Added new permission 'updatecharges:edit_notes'";
21
22
    },
23
};
(-)a/installer/data/mysql/mandatory/userpermissions.sql (+1 lines)
Lines 71-76 INSERT INTO permissions (module_bit, code, description) VALUES Link Here
71
   (10, 'manual_credit', 'Add manual credits to a patron account'),
71
   (10, 'manual_credit', 'Add manual credits to a patron account'),
72
   (10, 'manual_invoice', 'Add manual invoices to a patron account'),
72
   (10, 'manual_invoice', 'Add manual invoices to a patron account'),
73
   (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
73
   (10, 'remaining_permissions', 'Remaining permissions for managing fines and fees'),
74
   (10, 'edit_notes', 'Edit accountline notes'),
74
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
75
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
75
   (11, 'vendors_manage', 'Manage vendors'),
76
   (11, 'vendors_manage', 'Manage vendors'),
76
   (11, 'contracts_manage', 'Manage contracts'),
77
   (11, 'contracts_manage', 'Manage contracts'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +5 lines)
Lines 437-442 Link Here
437
            Add manual credits to a patron account
437
            Add manual credits to a patron account
438
        </span>
438
        </span>
439
        <span class="permissioncode">([% name | html %])</span>
439
        <span class="permissioncode">([% name | html %])</span>
440
    [%- CASE 'edit_notes' -%]
441
    <span class="sub_permission edit_notes_subpermission">
442
        Edit accountline notes
443
    </span>
444
    <span class="permissioncode">([% name | html %])</span>
440
    [%- CASE 'suggestions_manage' -%]
445
    [%- CASE 'suggestions_manage' -%]
441
        <span class="sub_permission suggestions_manage_subpermission">
446
        <span class="sub_permission suggestions_manage_subpermission">
442
            Manage purchase suggestions
447
            Manage purchase suggestions
443
- 

Return to bug 37211