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

(-)a/installer/data/mysql/atomicupdate/bug_37211.pl (-3 / +3 lines)
Lines 3-9 use Koha::Installer::Output qw(say_warning say_failure say_success say_info); Link Here
3
3
4
return {
4
return {
5
    bug_number  => "37211",
5
    bug_number  => "37211",
6
    description => "Add permission updatecharges:edit_notes",
6
    description => "Add permission updatecharges:edit_accountline_notes",
7
    up          => sub {
7
    up          => sub {
8
        my ($args) = @_;
8
        my ($args) = @_;
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
9
        my ( $dbh, $out ) = @$args{qw(dbh out)};
Lines 12-23 return { Link Here
12
        $dbh->do(
12
        $dbh->do(
13
            q{
13
            q{
14
            INSERT IGNORE INTO permissions (module_bit, code, description)
14
            INSERT IGNORE INTO permissions (module_bit, code, description)
15
            VALUES (10, 'edit_notes', 'Edit accountline notes')
15
            VALUES (10, 'edit_accountline_notes', 'Edit accountline notes')
16
        }
16
        }
17
        );
17
        );
18
18
19
        # permissions
19
        # permissions
20
        say_success( $out, "Added new permission 'updatecharges:edit_notes'" );
20
        say_success( $out, "Added new permission 'updatecharges:edit_accountline_notes'" );
21
21
22
    },
22
    },
23
};
23
};
(-)a/installer/data/mysql/mandatory/userpermissions.sql (-1 / +1 lines)
Lines 71-77 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
   (10, 'edit_accountline_notes', 'Edit accountline notes'),
75
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
75
   (11, 'currencies_manage', 'Manage currencies and exchange rates'),
76
   (11, 'vendors_manage', 'Manage vendors'),
76
   (11, 'vendors_manage', 'Manage vendors'),
77
   (11, 'contracts_manage', 'Manage contracts'),
77
   (11, 'contracts_manage', 'Manage contracts'),
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/permissions.inc (-1 / +1 lines)
Lines 308-314 Link Here
308
    [%- CASE 'suggestions_create' -%]
308
    [%- CASE 'suggestions_create' -%]
309
        <span class="sub_permission suggestions_create_subpermission"> Create purchase suggestions </span>
309
        <span class="sub_permission suggestions_create_subpermission"> Create purchase suggestions </span>
310
        <span class="permissioncode">([% name | html %])</span>
310
        <span class="permissioncode">([% name | html %])</span>
311
    [%- CASE 'edit_notes' -%]
311
    [%- CASE 'edit_accountline_notes' -%]
312
        <span class="sub_permission edit_notes_subpermission"> Edit accountline notes </span>
312
        <span class="sub_permission edit_notes_subpermission"> Edit accountline notes </span>
313
        <span class="permissioncode">([% name | html %])</span>
313
        <span class="permissioncode">([% name | html %])</span>
314
    [%- CASE 'suggestions_manage' -%]
314
    [%- CASE 'suggestions_manage' -%]
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/boraccount.tt (-2 / +1 lines)
Lines 135-141 Link Here
135
                            <td>[% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) | html %][% END %]</td>
135
                            <td>[% IF account.itemnumber %][% Branches.GetName( account.item.homebranch ) | html %][% END %]</td>
136
                            <td>
136
                            <td>
137
                                [% account.note | html_line_break %]
137
                                [% account.note | html_line_break %]
138
                                [% IF CAN_user_updatecharges_edit_notes %]
138
                                [% IF CAN_user_updatecharges_edit_accountline_notes %]
139
                                    <button
139
                                    <button
140
                                        type="button"
140
                                        type="button"
141
                                        class="btn btn-default btn-xs edit-action"
141
                                        class="btn btn-default btn-xs edit-action"
142
- 

Return to bug 37211