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

(-)a/circ/add_message.pl (-1 / +1 lines)
Lines 32-38 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
32
        query           => $input,
32
        query           => $input,
33
        type            => "intranet",
33
        type            => "intranet",
34
        authnotrequired => 0,
34
        authnotrequired => 0,
35
        flagsrequired   => { borrowers => 1 },
35
        flagsrequired   => { borrowers => 'edit_borrowers' },
36
        debug           => 1,
36
        debug           => 1,
37
    }
37
    }
38
);
38
);
(-)a/circ/del_message.pl (-1 / +1 lines)
Lines 32-38 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
32
        query           => $input,
32
        query           => $input,
33
        type            => "intranet",
33
        type            => "intranet",
34
        authnotrequired => 0,
34
        authnotrequired => 0,
35
        flagsrequired   => { borrowers => 1 },
35
        flagsrequired   => { borrowers => 'edit_borrowers' },
36
        debug           => 1,
36
        debug           => 1,
37
    }
37
    }
38
);
38
);
(-)a/edithelp.pl (-1 / +1 lines)
Lines 49-55 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
49
            catalogue        => 1,
49
            catalogue        => 1,
50
            circulate        => 1,
50
            circulate        => 1,
51
            parameters       => 1,
51
            parameters       => 1,
52
            borrowers        => 1,
52
            borrowers        => 'edit_borrowers',
53
            permissions      => 1,
53
            permissions      => 1,
54
            reserveforothers => 1,
54
            reserveforothers => 1,
55
            reserveforself   => 1,
55
            reserveforself   => 1,
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/adv-search.inc (-2 / +2 lines)
Lines 21-27 Link Here
21
            </div>
21
            </div>
22
        [% END %]
22
        [% END %]
23
23
24
        [% IF ( CAN_user_borrowers ) %]
24
        [% IF CAN_user_borrowers_edit_borrowers %]
25
            <div id="patron_search" class="residentsearch">
25
            <div id="patron_search" class="residentsearch">
26
                <p class="tip">Enter patron card number or partial name:</p>
26
                <p class="tip">Enter patron card number or partial name:</p>
27
                <form action="/cgi-bin/koha/members/member.pl" method="post">
27
                <form action="/cgi-bin/koha/members/member.pl" method="post">
Lines 42-48 Link Here
42
            [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
42
            [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]
43
                <li><a class="keep_text" href="#renew_search">Renew</a></li>
43
                <li><a class="keep_text" href="#renew_search">Renew</a></li>
44
            [% END %]
44
            [% END %]
45
            [% IF ( CAN_user_borrowers ) %]
45
            [% IF CAN_user_borrowers_edit_borrowers %]
46
                <li><a class="keep_text" href="#patron_search">Search patrons</a></li>
46
                <li><a class="keep_text" href="#patron_search">Search patrons</a></li>
47
            [% END %]
47
            [% END %]
48
        </ul>
48
        </ul>
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/borrower_debarments.inc (-3 / +3 lines)
Lines 36-42 Link Here
36
                     <th>Type</th>
36
                     <th>Type</th>
37
                     <th>Comment</th>
37
                     <th>Comment</th>
38
                     <th>Expiration</th>
38
                     <th>Expiration</th>
39
                     [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
39
                     [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
40
                         <th>&nbsp;</th>
40
                         <th>&nbsp;</th>
41
                     [% END %]
41
                     [% END %]
42
                </tr>
42
                </tr>
Lines 64-70 Link Here
64
			    [% END %]
64
			    [% END %]
65
			</td>
65
			</td>
66
                        <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
66
                        <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
67
                        [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
67
                        [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
68
                            <td>
68
                            <td>
69
                                <a class="remove_restriction btn btn-default btn-xs" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&amp;borrower_debarment_id=[% d.borrower_debarment_id %]&amp;action=del">
69
                                <a class="remove_restriction btn btn-default btn-xs" href="/cgi-bin/koha/members/mod_debarment.pl?borrowernumber=[% borrowernumber %]&amp;borrower_debarment_id=[% d.borrower_debarment_id %]&amp;action=del">
70
                                    <i class="fa fa-trash"></i> Remove
70
                                    <i class="fa fa-trash"></i> Remove
Lines 76-82 Link Here
76
            </tbody>
76
            </tbody>
77
        </table>
77
        </table>
78
    [% END %]
78
    [% END %]
79
    [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
79
    [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
80
        <p><a href="#" id="add_manual_restriction"><i class="fa fa-plus"></i> Add manual restriction</a></p>
80
        <p><a href="#" id="add_manual_restriction"><i class="fa fa-plus"></i> Add manual restriction</a></p>
81
        <form method="post" action="/cgi-bin/koha/members/mod_debarment.pl" class="clearfix">
81
        <form method="post" action="/cgi-bin/koha/members/mod_debarment.pl" class="clearfix">
82
            <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
82
            <input type="hidden" name="borrowernumber" value="[% borrowernumber %]" />
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc (-7 / +7 lines)
Lines 70-76 Link Here
70
          [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]&amp;batch=1">Batch check out</a></li>
70
          [% IF ( batch_checkout_view ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/circ/circulation.pl?borrowernumber=[% borrowernumber %]&amp;batch=1">Batch check out</a></li>
71
        [% END %]
71
        [% END %]
72
    [% END %]
72
    [% END %]
73
    [% IF ( CAN_user_borrowers ) %]
73
    [% IF CAN_user_borrowers_edit_borrowers %]
74
        [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
74
        [% IF ( detailview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/moremember.pl?borrowernumber=[% borrowernumber %]">Details</a></li>
75
    [% END %]
75
    [% END %]
76
    [% IF ( CAN_user_updatecharges ) %]
76
    [% IF ( CAN_user_updatecharges ) %]
Lines 79-85 Link Here
79
    [% IF ( CAN_user_circulate_circulate_remaining_permissions  )  %]
79
    [% IF ( CAN_user_circulate_circulate_remaining_permissions  )  %]
80
        [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %]
80
        [% IF ( RoutingSerials ) %][% IF ( routinglistview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/routing-lists.pl?borrowernumber=[% borrowernumber %]">Routing lists</a></li>[% END %]
81
    [% END %]
81
    [% END %]
82
    [% IF ( CAN_user_borrowers ) %]
82
    [% IF CAN_user_borrowers_edit_borrowers %]
83
        [% IF ( intranetreadinghistory ) %]
83
        [% IF ( intranetreadinghistory ) %]
84
            [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
84
            [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li>
85
        [% END %]
85
        [% END %]
Lines 87-108 Link Here
87
    [% IF ( CAN_user_parameters ) %]
87
    [% IF ( CAN_user_parameters ) %]
88
        [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=MEMBERS&amp;modules=circulation&amp;object=[% borrowernumber %]&amp;src=circ">Modification log</a></li>
88
        [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&amp;modules=MEMBERS&amp;modules=circulation&amp;object=[% borrowernumber %]&amp;src=circ">Modification log</a></li>
89
    [% END %]
89
    [% END %]
90
    [% IF ( CAN_user_borrowers ) %]
90
    [% IF CAN_user_borrowers_edit_borrowers %]
91
	[% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
91
	[% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li>
92
    [% END %]
92
    [% END %]
93
    [% IF ( CAN_user_borrowers ) %]
93
    [% IF CAN_user_borrowers_edit_borrowers %]
94
        [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
94
        [% IF (  statisticsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/statistics.pl?borrowernumber=[% borrowernumber %]">Statistics</a></li>
95
    [% END %]
95
    [% END %]
96
    [% IF ( CAN_user_borrowers ) %]
96
    [% IF CAN_user_borrowers_edit_borrowers %]
97
        [% IF ( EnableBorrowerFiles ) %]
97
        [% IF ( EnableBorrowerFiles ) %]
98
            [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
98
            [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
99
        [% END %]
99
        [% END %]
100
    [% END %]
100
    [% END %]
101
101
102
    [% IF ( CAN_user_borrowers ) %]
102
    [% IF CAN_user_borrowers_edit_borrowers %]
103
        [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li>
103
        [% IF ( suggestionsview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/purchase-suggestions.pl?borrowernumber=[% borrowernumber %]">Purchase suggestions</a></li>
104
    [% END %]
104
    [% END %]
105
    [% IF CAN_user_borrowers && useDischarge %]
105
    [% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
106
        [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharges</a></li>
106
        [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharges</a></li>
107
    [% END %]
107
    [% END %]
108
    [% IF Koha.Preference('HouseboundModule') %]
108
    [% IF Koha.Preference('HouseboundModule') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc (-1 / +1 lines)
Lines 3-9 Link Here
3
    <div class="container-fluid">
3
    <div class="container-fluid">
4
        <ul id="toplevelmenu" class="nav navbar-nav">
4
        <ul id="toplevelmenu" class="nav navbar-nav">
5
            [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %]
5
            [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %]
6
            [% IF ( CAN_user_borrowers ) %]<li><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></li>[% END %]
6
            [% IF CAN_user_borrowers_edit_borrowers %]<li><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></li>[% END %]
7
            <li class="dropdown">
7
            <li class="dropdown">
8
                <a href="/cgi-bin/koha/catalogue/search.pl" class="dropdown-toggle" data-toggle="dropdown">Search <b class="caret"></b></a>
8
                <a href="/cgi-bin/koha/catalogue/search.pl" class="dropdown-toggle" data-toggle="dropdown">Search <b class="caret"></b></a>
9
                <ul class="dropdown-menu">
9
                <ul class="dropdown-menu">
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/home-search.inc (-2 / +2 lines)
Lines 21-27 Link Here
21
    </div>
21
    </div>
22
[% END %]
22
[% END %]
23
23
24
[% IF ( CAN_user_borrowers ) %]
24
[% IF CAN_user_borrowers_edit_borrowers %]
25
<div id="patron_search" class="residentsearch">
25
<div id="patron_search" class="residentsearch">
26
    <p class="tip">Enter patron card number or partial name:</p>
26
    <p class="tip">Enter patron card number or partial name:</p>
27
    <form action="/cgi-bin/koha/members/member.pl" method="post">
27
    <form action="/cgi-bin/koha/members/member.pl" method="post">
Lines 44-50 Link Here
44
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
44
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#circ_search">Check out</a></li>[% END %]
45
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#checkin_search">Check in</a></li>[% END %]
45
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#checkin_search">Check in</a></li>[% END %]
46
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#renew_search">Renew</a></li>[% END %]
46
    [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a class="keep_text" href="#renew_search">Renew</a></li>[% END %]
47
    [% IF ( CAN_user_borrowers ) %]<li><a class="keep_text" href="#patron_search">Search patrons</a></li>[% END %]
47
    [% IF CAN_user_borrowers_edit_borrowers %]<li><a class="keep_text" href="#patron_search">Search patrons</a></li>[% END %]
48
    [% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
48
    [% IF ( CAN_user_catalogue ) %]<li><a class="keep_text" href="#catalog_search">Search the catalog</a></li>[% END %]
49
</ul>
49
</ul>
50
50
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc (-1 / +1 lines)
Lines 17-23 Link Here
17
    [% IF EnableBorrowerFiles %]
17
    [% IF EnableBorrowerFiles %]
18
        [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
18
        [% IF ( borrower_files ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/files.pl?borrowernumber=[% borrowernumber %]">Files</a></li>
19
    [% END %]
19
    [% END %]
20
    [% IF CAN_user_borrowers && useDischarge %]
20
    [% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
21
        [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li>
21
        [% IF dischargeview %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li>
22
    [% END %]
22
    [% END %]
23
    [% IF Koha.Preference('HouseboundModule') %]
23
    [% IF Koha.Preference('HouseboundModule') %]
(-)a/koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc (-8 / +8 lines)
Lines 6-12 Link Here
6
<script type="text/javascript">
6
<script type="text/javascript">
7
//<![CDATA[
7
//<![CDATA[
8
$(document).ready(function(){
8
$(document).ready(function(){
9
    [% IF ( CAN_user_borrowers ) %]
9
    [% IF CAN_user_borrowers_edit_borrowers %]
10
        [% IF ( NorwegianPatronDBEnable == 1 ) %]
10
        [% IF ( NorwegianPatronDBEnable == 1 ) %]
11
            $("#deletepatronlocal").click(function(){
11
            $("#deletepatronlocal").click(function(){
12
                confirm_local_deletion();
12
                confirm_local_deletion();
Lines 132-138 function searchToHold(){ Link Here
132
</script>
132
</script>
133
133
134
<div id="toolbar" class="btn-toolbar">
134
<div id="toolbar" class="btn-toolbar">
135
    [% IF ( CAN_user_borrowers ) %]
135
    [% IF CAN_user_borrowers_edit_borrowers %]
136
        [% IF ( guarantor ) %]
136
        [% IF ( guarantor ) %]
137
            <a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;guarantorid=[% guarantor.borrowernumber %]&amp;categorycode=[% categorycode %]">
137
            <a id="editpatron" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=modify&amp;destination=circ&amp;borrowernumber=[% borrowernumber %]&amp;guarantorid=[% guarantor.borrowernumber %]&amp;categorycode=[% categorycode %]">
138
        [% ELSE %]
138
        [% ELSE %]
Lines 141-151 function searchToHold(){ Link Here
141
        <i class="fa fa-pencil"></i> Edit</a>
141
        <i class="fa fa-pencil"></i> Edit</a>
142
    [% END %]
142
    [% END %]
143
143
144
    [% IF ( CAN_user_borrowers ) %]
144
    [% IF CAN_user_borrowers_edit_borrowers %]
145
        [% IF adultborrower AND Koha.Preference("borrowerRelationship") %]
145
        [% IF adultborrower AND Koha.Preference("borrowerRelationship") %]
146
            <a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]"><i class="fa fa-plus"></i> Add child</a>
146
            <a id="addchild" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=add&amp;guarantorid=[% borrowernumber %]"><i class="fa fa-plus"></i> Add child</a>
147
        [% END %]
147
        [% END %]
148
        [% IF ( CAN_user_borrowers ) %]
148
        [% IF CAN_user_borrowers_edit_borrowers %]
149
            <a id="changepassword" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]"><i class="fa fa-lock"></i> Change password</a>
149
            <a id="changepassword" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/member-password.pl?member=[% borrowernumber %]"><i class="fa fa-lock"></i> Change password</a>
150
        [% END %]
150
        [% END %]
151
        <a id="duplicate" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]"><i class="fa fa-copy"></i> Duplicate</a>
151
        <a id="duplicate" class="btn btn-default btn-sm" href="/cgi-bin/koha/members/memberentry.pl?op=duplicate&amp;borrowernumber=[% borrowernumber %]&amp;categorycode=[% categorycode %]"><i class="fa fa-copy"></i> Duplicate</a>
Lines 154-160 function searchToHold(){ Link Here
154
    <div class="btn-group">
154
    <div class="btn-group">
155
        <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-print"></i> Print <span class="caret"></span></button>
155
        <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown"><i class="fa fa-print"></i> Print <span class="caret"></span></button>
156
            <ul class="dropdown-menu">
156
            <ul class="dropdown-menu">
157
                [% IF ( CAN_user_borrowers ) %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %]
157
                [% IF CAN_user_borrowers_edit_borrowers %]<li><a id="printsummary" href="#">Print summary</a></li>[% END %]
158
                <li><a id="printslip" href="#">Print slip</a></li>
158
                <li><a id="printslip" href="#">Print slip</a></li>
159
                <li><a id="printquickslip" href="#">Print quick slip</a></li>
159
                <li><a id="printquickslip" href="#">Print quick slip</a></li>
160
                [% IF Borrowers.HasOverdues( borrowernumber ) %]
160
                [% IF Borrowers.HasOverdues( borrowernumber ) %]
Lines 172-178 function searchToHold(){ Link Here
172
         <div class="btn-group">
172
         <div class="btn-group">
173
        <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button>
173
        <button class="btn btn-default btn-sm dropdown-toggle" data-toggle="dropdown">More <span class="caret"></span></button>
174
            <ul class="dropdown-menu">
174
            <ul class="dropdown-menu">
175
                [% IF ( CAN_user_borrowers ) %]
175
                [% IF CAN_user_borrowers_edit_borrowers %]
176
                    <li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=[% destination %]&amp;reregistration=y">Renew patron</a></li>
176
                    <li><a id="renewpatron" href="/cgi-bin/koha/members/setstatus.pl?borrowernumber=[% borrowernumber %]&amp;destination=[% destination %]&amp;reregistration=y">Renew patron</a></li>
177
                [% ELSE %]
177
                [% ELSE %]
178
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li>
178
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to renew patrons" id="renewpatron" href="#">Renew patron</a></li>
Lines 182-191 function searchToHold(){ Link Here
182
                [% ELSE %]
182
                [% ELSE %]
183
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li>
183
                    <li class="disabled"><a data-toggle="tooltip" data-placement="left" title="You are not authorized to set permissions" id="patronflags" href="#">Set permissions</a></li>
184
                [% END %]
184
                [% END %]
185
                [% IF CAN_user_borrowers && useDischarge %]
185
                [% IF CAN_user_borrowers_edit_borrowers && useDischarge %]
186
                    <li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li>
186
                    <li><a href="/cgi-bin/koha/members/discharge.pl?borrowernumber=[% borrowernumber %]">Discharge</a></li>
187
                [% END %]
187
                [% END %]
188
                [% IF ( CAN_user_borrowers ) %]
188
                [% IF CAN_user_borrowers_edit_borrowers %]
189
                    [% IF ( NorwegianPatronDBEnable == 1 ) %]
189
                    [% IF ( NorwegianPatronDBEnable == 1 ) %]
190
                        <li><a id="deletepatronlocal" href="#">Delete local</a></li>
190
                        <li><a id="deletepatronlocal" href="#">Delete local</a></li>
191
                        <li><a id="deletepatronremote" href="#">Delete remote</a></li>
191
                        <li><a id="deletepatronremote" href="#">Delete remote</a></li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/circ/circulation.tt (-1 / +1 lines)
Lines 727-733 No patron matched <span class="ex">[% message | html %]</span> Link Here
727
727
728
                   [% IF ( has_modifications ) %]
728
                   [% IF ( has_modifications ) %]
729
                    <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
729
                    <li><span class="circ-hlt">Pending modifications:</span> Patron has pending modifications.
730
                            [% IF CAN_user_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
730
                            [% IF CAN_user_borrowers_edit_borrowers && ( !Koha.Preference('IndependentBranchesPatronModifications') || borrower.branch == branch ) %]
731
                                    <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
731
                                    <a href="/cgi-bin/koha/members/members-update.pl">View all pending patron modifications</a>
732
                            [% END %]
732
                            [% END %]
733
                   </li>
733
                   </li>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt (-5 / +5 lines)
Lines 33-39 Link Here
33
                    </li>
33
                    </li>
34
                    [% END %]
34
                    [% END %]
35
35
36
                    [% IF ( CAN_user_borrowers ) %]
36
                    [% IF CAN_user_borrowers_edit_borrowers %]
37
                    <li>
37
                    <li>
38
                        <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
38
                        <a class="icon_general icon_patrons" href="/cgi-bin/koha/members/members-home.pl">Patrons</a>
39
                    </li>
39
                    </li>
Lines 111-119 Link Here
111
<div class="yui-g">
111
<div class="yui-g">
112
            [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) 
112
            [% IF ( ( CAN_user_tools_moderate_comments  && pendingcomments ) 
113
                    || ( CAN_user_tools_moderate_tags && pendingtags )
113
                    || ( CAN_user_tools_moderate_tags && pendingtags )
114
                    || ( CAN_user_borrowers && pending_borrower_modifications )
114
                    || ( CAN_user_borrowers_edit_borrowers && pending_borrower_modifications )
115
                    || ( CAN_user_acquisition && pendingsuggestions )
115
                    || ( CAN_user_acquisition && pendingsuggestions )
116
                    || ( CAN_user_borrowers && pending_discharge_requests )
116
                    || ( CAN_user_borrowers_edit_borrowers && pending_discharge_requests )
117
                    || pending_article_requests
117
                    || pending_article_requests
118
            ) %]
118
            ) %]
119
                <div id="area-pending">
119
                <div id="area-pending">
Lines 148-161 Link Here
148
                    [% END %]
148
                    [% END %]
149
149
150
150
151
                    [% IF ( CAN_user_borrowers && pending_borrower_modifications ) %]
151
                    [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
152
                    <div class="pending-info" id="patron_updates_pending">
152
                    <div class="pending-info" id="patron_updates_pending">
153
                        <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
153
                        <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
154
                        <span class="pending-number-link">[% pending_borrower_modifications %]</span>
154
                        <span class="pending-number-link">[% pending_borrower_modifications %]</span>
155
                    </div>
155
                    </div>
156
                    [% END %]
156
                    [% END %]
157
157
158
                    [% IF CAN_user_borrowers && pending_discharge_requests %]
158
                    [% IF CAN_user_borrowers_edit_borrowers && pending_discharge_requests %]
159
                    <div class="pending-info" id="patron_discharges_pending">
159
                    <div class="pending-info" id="patron_discharges_pending">
160
                        <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
160
                        <a href="/cgi-bin/koha/members/discharges.pl">Discharge requests pending</a>:
161
                        <span class="pending-number-link">[% pending_discharge_requests %]</span>
161
                        <span class="pending-number-link">[% pending_discharge_requests %]</span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/files.tt (-2 / +2 lines)
Lines 33-39 Link Here
33
                            <th>Type</th>
33
                            <th>Type</th>
34
                            <th>Description</th>
34
                            <th>Description</th>
35
                            <th>Uploaded</th>
35
                            <th>Uploaded</th>
36
                            [% IF CAN_user_borrowers %]<th>&nbsp;</th>[% END %]
36
                            [% IF CAN_user_borrowers_edit_borrowers %]<th>&nbsp;</th>[% END %]
37
                        </tr>
37
                        </tr>
38
                    </thead>
38
                    </thead>
39
39
Lines 44-50 Link Here
44
                                 <td>[% f.file_type %]</td>
44
                                 <td>[% f.file_type %]</td>
45
                                 <td>[% f.file_description %]</td>
45
                                 <td>[% f.file_description %]</td>
46
                                 <td>[% f.date_uploaded | $KohaDates %]</td>
46
                                 <td>[% f.date_uploaded | $KohaDates %]</td>
47
                                 [% IF CAN_user_borrowers %]<td><a href="?borrowernumber=[% borrowernumber %]&amp;op=delete&amp;file_id=[% f.file_id %]">Delete</a></td>[% END %]
47
                                 [% IF CAN_user_borrowers_edit_borrowers %]<td><a href="?borrowernumber=[% borrowernumber %]&amp;op=delete&amp;file_id=[% f.file_id %]">Delete</a></td>[% END %]
48
                            </tr>
48
                            </tr>
49
                        [% END %]
49
                        [% END %]
50
                    </tbody>
50
                    </tbody>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/member.tt (-1 / +1 lines)
Lines 344-350 function filterByFirstLetterSurname(letter) { Link Here
344
            [% END %]
344
            [% END %]
345
          </div>
345
          </div>
346
346
347
          [% IF ( CAN_user_borrowers && pending_borrower_modifications ) %]
347
          [% IF CAN_user_borrowers_edit_borrowers && pending_borrower_modifications %]
348
            <div class="pending-info" id="patron_updates_pending">
348
            <div class="pending-info" id="patron_updates_pending">
349
              <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
349
              <a href="/cgi-bin/koha/members/members-update.pl">Patrons requesting modifications</a>:
350
              <span class="number_box"><a href="/cgi-bin/koha/members/members-update.pl">[% pending_borrower_modifications %]</a></span>
350
              <span class="number_box"><a href="/cgi-bin/koha/members/members-update.pl">[% pending_borrower_modifications %]</a></span>
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/members/memberentrygen.tt (-3 / +3 lines)
Lines 967-973 $(document).ready(function() { Link Here
967
                                 <th>Type</th>
967
                                 <th>Type</th>
968
                                 <th>Comment</th>
968
                                 <th>Comment</th>
969
                                 <th>Expiration</th>
969
                                 <th>Expiration</th>
970
                                 [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
970
                                 [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
971
                                   <th>Remove?</th>
971
                                   <th>Remove?</th>
972
                                 [% END %]
972
                                 [% END %]
973
                            </tr>
973
                            </tr>
Lines 985-991 $(document).ready(function() { Link Here
985
                                    [% END %]
985
                                    [% END %]
986
                                    </td>
986
                                    </td>
987
                                    <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
987
                                    <td>[% IF d.expiration %] [% d.expiration | $KohaDates %] [% ELSE %] <i>Indefinite</i> [% END %]</td>
988
                                    [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
988
                                    [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
989
                                      <td>
989
                                      <td>
990
                                        <input type="checkbox" id="debarment_[% d.borrower_debarment_id %]" name="remove_debarment" value="[% d.borrower_debarment_id %]" />
990
                                        <input type="checkbox" id="debarment_[% d.borrower_debarment_id %]" name="remove_debarment" value="[% d.borrower_debarment_id %]" />
991
                                      </td>
991
                                      </td>
Lines 998-1004 $(document).ready(function() { Link Here
998
                    <p>Patron is currently unrestricted.</p>
998
                    <p>Patron is currently unrestricted.</p>
999
                [% END %]
999
                [% END %]
1000
1000
1001
                [% IF CAN_user_borrowers && CAN_user_circulate_manage_restrictions %]
1001
                [% IF CAN_user_borrowers_edit_borrowers && CAN_user_circulate_manage_restrictions %]
1002
                    <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
1002
                    <p><a href="#" id="add_manual_restriction">Add manual restriction</a></p>
1003
                    <fieldset id="manual_restriction_form">
1003
                    <fieldset id="manual_restriction_form">
1004
                        <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
1004
                        <input type="hidden" id="add_debarment" name="add_debarment" value="0" />
(-)a/labels/label-item-search.pl (-1 / +1 lines)
Lines 169-175 if ($show_results) { Link Here
169
            query           => $query,
169
            query           => $query,
170
            type            => "intranet",
170
            type            => "intranet",
171
            authnotrequired => 0,
171
            authnotrequired => 0,
172
            flagsrequired   => { borrowers => 1 },
172
            flagsrequired   => { borrowers => 'edit_borrowers' },
173
            flagsrequired   => { catalogue => 1 },
173
            flagsrequired   => { catalogue => 1 },
174
            debug           => 1,
174
            debug           => 1,
175
        }
175
        }
(-)a/members/boraccount.pl (-1 / +1 lines)
Lines 43-49 my ($template, $loggedinuser, $cookie) = get_template_and_user( Link Here
43
        query           => $input,
43
        query           => $input,
44
        type            => "intranet",
44
        type            => "intranet",
45
        authnotrequired => 0,
45
        authnotrequired => 0,
46
        flagsrequired   => { borrowers     => 1,
46
        flagsrequired   => { borrowers     => 'edit_borrowers',
47
                             updatecharges => 'remaining_permissions'},
47
                             updatecharges => 'remaining_permissions'},
48
        debug           => 1,
48
        debug           => 1,
49
    }
49
    }
(-)a/members/default_messageprefs.pl (-1 / +1 lines)
Lines 28-34 use C4::Form::MessagingPreferences; Link Here
28
# update the prefs if operator is creating a new patron and has
28
# update the prefs if operator is creating a new patron and has
29
# changed the patron category from its original value.
29
# changed the patron category from its original value.
30
30
31
my ($query, $response) = C4::Service->init(borrowers => 1);
31
my ($query, $response) = C4::Service->init(borrowers => 'edit_borrowers');
32
my ($categorycode) = C4::Service->require_params('categorycode');
32
my ($categorycode) = C4::Service->require_params('categorycode');
33
C4::Form::MessagingPreferences::set_form_values({ categorycode => $categorycode }, $response);
33
C4::Form::MessagingPreferences::set_form_values({ categorycode => $categorycode }, $response);
34
C4::Service->return_success( $response );
34
C4::Service->return_success( $response );
(-)a/members/deletemem.pl (-2 / +2 lines)
Lines 44-50 my ($template, $borrowernumber, $cookie) Link Here
44
                                        query => $input,
44
                                        query => $input,
45
                                        type => "intranet",
45
                                        type => "intranet",
46
                                        authnotrequired => 0,
46
                                        authnotrequired => 0,
47
                                        flagsrequired => {borrowers => 1},
47
                                        flagsrequired => {borrowers => 'edit_borrowers'},
48
                                        debug => 1,
48
                                        debug => 1,
49
                                        });
49
                                        });
50
50
Lines 86-92 if ($patron->category->category_type eq "S") { Link Here
86
        exit 0; # Exit without error
86
        exit 0; # Exit without error
87
    }
87
    }
88
} else {
88
} else {
89
    unless(C4::Auth::haspermission($userenv->{'id'},{'borrowers'=>1})) {
89
    unless(C4::Auth::haspermission($userenv->{'id'},{'borrowers'=>'edit_borrowers'})) {
90
	print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE");
90
	print $input->redirect("/cgi-bin/koha/members/moremember.pl?borrowernumber=$member&error=CANT_DELETE");
91
        exit 0; # Exit without error
91
        exit 0; # Exit without error
92
    }
92
    }
(-)a/members/discharge.pl (-1 / +1 lines)
Lines 48-54 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user({ Link Here
48
    query           => $input,
48
    query           => $input,
49
    type            => 'intranet',
49
    type            => 'intranet',
50
    authnotrequired => 0,
50
    authnotrequired => 0,
51
    flagsrequired   => { 'borrowers' => '*' },
51
    flagsrequired   => { 'borrowers' => 'edit_borrowers' },
52
});
52
});
53
53
54
my $borrowernumber = $input->param('borrowernumber');
54
my $borrowernumber = $input->param('borrowernumber');
(-)a/members/discharges.pl (-1 / +1 lines)
Lines 33-39 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user({ Link Here
33
    query           => $input,
33
    query           => $input,
34
    type            => "intranet",
34
    type            => "intranet",
35
    authnotrequired => 0,
35
    authnotrequired => 0,
36
    flagsrequired   => { borrowers => 1 },
36
    flagsrequired   => { borrowers => 'edit_borrowers' },
37
});
37
});
38
38
39
my $branchcode =
39
my $branchcode =
(-)a/members/files.pl (-1 / +1 lines)
Lines 40-46 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
40
        query           => $cgi,
40
        query           => $cgi,
41
        type            => "intranet",
41
        type            => "intranet",
42
        authnotrequired => 0,
42
        authnotrequired => 0,
43
        flagsrequired   => { borrowers => 1 },
43
        flagsrequired   => { borrowers => 'edit_borrowers' },
44
        debug           => 1,
44
        debug           => 1,
45
    }
45
    }
46
);
46
);
(-)a/members/guarantor_search.pl (-1 / +1 lines)
Lines 35-41 my ( $template, $loggedinuser, $cookie, $staff_flags ) = get_template_and_user( Link Here
35
        query           => $input,
35
        query           => $input,
36
        type            => "intranet",
36
        type            => "intranet",
37
        authnotrequired => 0,
37
        authnotrequired => 0,
38
        flagsrequired   => { borrowers => 1 },
38
        flagsrequired   => { borrowers => 'edit_borrowers' },
39
    }
39
    }
40
);
40
);
41
41
(-)a/members/housebound.pl (-1 / +1 lines)
Lines 47-53 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
47
        query           => $input,
47
        query           => $input,
48
        type            => 'intranet',
48
        type            => 'intranet',
49
        authnotrequired => 0,
49
        authnotrequired => 0,
50
        flagsrequired   => { borrowers => 1 },
50
        flagsrequired   => { borrowers => 'edit_borrowers' },
51
    }
51
    }
52
);
52
);
53
53
(-)a/members/mancredit.pl (-2 / +2 lines)
Lines 38-44 use Koha::Patrons; Link Here
38
use Koha::Patron::Categories;
38
use Koha::Patron::Categories;
39
39
40
my $input=new CGI;
40
my $input=new CGI;
41
my $flagsrequired = { borrowers => 1, updatecharges => 1 };
41
my $flagsrequired = { borrowers => 'edit_borrowers', updatecharges => 1 };
42
42
43
my $borrowernumber=$input->param('borrowernumber');
43
my $borrowernumber=$input->param('borrowernumber');
44
44
Lines 67-73 if ($add){ Link Here
67
            query           => $input,
67
            query           => $input,
68
            type            => "intranet",
68
            type            => "intranet",
69
            authnotrequired => 0,
69
            authnotrequired => 0,
70
            flagsrequired   => { borrowers     => 1,
70
            flagsrequired   => { borrowers     => 'edit_borrowers',
71
                                 updatecharges => 'remaining_permissions' },
71
                                 updatecharges => 'remaining_permissions' },
72
            debug           => 1,
72
            debug           => 1,
73
        }
73
        }
(-)a/members/maninvoice.pl (-2 / +2 lines)
Lines 38-44 use Koha::Patrons; Link Here
38
use Koha::Patron::Categories;
38
use Koha::Patron::Categories;
39
39
40
my $input=new CGI;
40
my $input=new CGI;
41
my $flagsrequired = { borrowers => 1 };
41
my $flagsrequired = { borrowers => 'edit_borrowers' };
42
42
43
my $borrowernumber=$input->param('borrowernumber');
43
my $borrowernumber=$input->param('borrowernumber');
44
44
Lines 84-90 if ($add){ Link Here
84
        query           => $input,
84
        query           => $input,
85
        type            => "intranet",
85
        type            => "intranet",
86
        authnotrequired => 0,
86
        authnotrequired => 0,
87
        flagsrequired   => { borrowers => 1,
87
        flagsrequired   => { borrowers => 'edit_borrowers',
88
                             updatecharges => 'remaining_permissions' },
88
                             updatecharges => 'remaining_permissions' },
89
        debug           => 1,
89
        debug           => 1,
90
    });
90
    });
(-)a/members/member-password.pl (-4 / +1 lines)
Lines 32-45 my ( $template, $loggedinuser, $cookie, $staffflags ) = get_template_and_user( Link Here
32
        query           => $input,
32
        query           => $input,
33
        type            => "intranet",
33
        type            => "intranet",
34
        authnotrequired => 0,
34
        authnotrequired => 0,
35
        flagsrequired   => { borrowers => 1 },
35
        flagsrequired   => { borrowers => 'edit_borrowers' },
36
        debug           => 1,
36
        debug           => 1,
37
    }
37
    }
38
);
38
);
39
39
40
my $flagsrequired;
41
$flagsrequired->{borrowers} = 1;
42
43
my $member      = $input->param('member');
40
my $member      = $input->param('member');
44
my $cardnumber  = $input->param('cardnumber');
41
my $cardnumber  = $input->param('cardnumber');
45
my $destination = $input->param('destination');
42
my $destination = $input->param('destination');
(-)a/members/member.pl (-1 / +1 lines)
Lines 38-44 my ($template, $loggedinuser, $cookie) Link Here
38
                 query => $input,
38
                 query => $input,
39
                 type => "intranet",
39
                 type => "intranet",
40
                 authnotrequired => 0,
40
                 authnotrequired => 0,
41
                 flagsrequired => {borrowers => 1},
41
                 flagsrequired => {borrowers => 'edit_borrowers'},
42
                 });
42
                 });
43
43
44
my $theme = $input->param('theme') || "default";
44
my $theme = $input->param('theme') || "default";
(-)a/members/memberentry.pl (-1 / +1 lines)
Lines 71-77 my ($template, $loggedinuser, $cookie) Link Here
71
           query => $input,
71
           query => $input,
72
           type => "intranet",
72
           type => "intranet",
73
           authnotrequired => 0,
73
           authnotrequired => 0,
74
           flagsrequired => {borrowers => 1},
74
           flagsrequired => {borrowers => 'edit_borrowers'},
75
           debug => ($debug) ? 1 : 0,
75
           debug => ($debug) ? 1 : 0,
76
       });
76
       });
77
77
(-)a/members/members-home.pl (-1 / +1 lines)
Lines 39-45 my ($template, $loggedinuser, $cookie) Link Here
39
                 query => $query,
39
                 query => $query,
40
                 type => "intranet",
40
                 type => "intranet",
41
                 authnotrequired => 0,
41
                 authnotrequired => 0,
42
                 flagsrequired => {borrowers => 1},
42
                 flagsrequired => {borrowers => 'edit_borrowers'},
43
                 debug => 1,
43
                 debug => 1,
44
                 });
44
                 });
45
45
(-)a/members/members-update-do.pl (-1 / +1 lines)
Lines 34-40 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
34
        query           => $query,
34
        query           => $query,
35
        type            => "intranet",
35
        type            => "intranet",
36
        authnotrequired => 0,
36
        authnotrequired => 0,
37
        flagsrequired   => { borrowers => 1 },
37
        flagsrequired   => { borrowers => 'edit_borrowers' },
38
        debug           => 1,
38
        debug           => 1,
39
    }
39
    }
40
);
40
);
(-)a/members/members-update.pl (-1 / +1 lines)
Lines 38-44 my ( $template, $loggedinuser, $cookie, $flags ) = get_template_and_user( Link Here
38
        query           => $query,
38
        query           => $query,
39
        type            => "intranet",
39
        type            => "intranet",
40
        authnotrequired => 0,
40
        authnotrequired => 0,
41
        flagsrequired   => { borrowers => 1 },
41
        flagsrequired   => { borrowers => 'edit_borrowers' },
42
        debug           => 1,
42
        debug           => 1,
43
    }
43
    }
44
);
44
);
(-)a/members/mod_debarment.pl (-1 / +1 lines)
Lines 27-33 use Koha::Patron::Debarments; Link Here
27
27
28
my $cgi = new CGI;
28
my $cgi = new CGI;
29
29
30
my ( $loggedinuser, $cookie, $sessionID ) = checkauth( $cgi, 0, { borrowers => 1 }, 'intranet' );
30
my ( $loggedinuser, $cookie, $sessionID ) = checkauth( $cgi, 0, { borrowers => 'edit_borrowers' }, 'intranet' );
31
31
32
my $borrowernumber = $cgi->param('borrowernumber');
32
my $borrowernumber = $cgi->param('borrowernumber');
33
my $action         = $cgi->param('action');
33
my $action         = $cgi->param('action');
(-)a/members/moremember.pl (-2 / +2 lines)
Lines 99-108 if (defined $print and $print eq "page") { Link Here
99
    $flagsrequired =  { circulate => "circulate_remaining_permissions" };
99
    $flagsrequired =  { circulate => "circulate_remaining_permissions" };
100
} elsif (defined $print and $print eq "brief") {
100
} elsif (defined $print and $print eq "brief") {
101
    $template_name = "members/moremember-brief.tt";
101
    $template_name = "members/moremember-brief.tt";
102
    $flagsrequired = { borrowers => 1 };
102
    $flagsrequired = { borrowers => 'edit_borrowers' };
103
} else {
103
} else {
104
    $template_name = "members/moremember.tt";
104
    $template_name = "members/moremember.tt";
105
    $flagsrequired = { borrowers => 1 };
105
    $flagsrequired = { borrowers => 'edit_borrowers' };
106
}
106
}
107
107
108
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
108
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
(-)a/members/nl-search.pl (-1 / +1 lines)
Lines 57-63 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
57
        query           => $cgi,
57
        query           => $cgi,
58
        type            => "intranet",
58
        type            => "intranet",
59
        authnotrequired => 0,
59
        authnotrequired => 0,
60
        flagsrequired   => { borrowers => 1 },
60
        flagsrequired   => { borrowers => 'edit_borrowers' },
61
        debug           => 1,
61
        debug           => 1,
62
    }
62
    }
63
);
63
);
(-)a/members/notices.pl (-1 / +1 lines)
Lines 41-47 my ($template, $loggedinuser, $cookie) Link Here
41
				query => $input,
41
				query => $input,
42
				type => "intranet",
42
				type => "intranet",
43
				authnotrequired => 0,
43
				authnotrequired => 0,
44
				flagsrequired => {borrowers => 1},
44
                flagsrequired => {borrowers => 'edit_borrowers'},
45
				debug => 1,
45
				debug => 1,
46
				});
46
				});
47
47
(-)a/members/pay.pl (-1 / +1 lines)
Lines 54-60 our ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
54
        query           => $input,
54
        query           => $input,
55
        type            => 'intranet',
55
        type            => 'intranet',
56
        authnotrequired => 0,
56
        authnotrequired => 0,
57
        flagsrequired   => { borrowers => 1, updatecharges => $updatecharges_permissions },
57
        flagsrequired   => { borrowers => 'edit_borrowers', updatecharges => $updatecharges_permissions },
58
        debug           => 1,
58
        debug           => 1,
59
    }
59
    }
60
);
60
);
(-)a/members/paycollect.pl (-1 / +1 lines)
Lines 42-48 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
42
        query           => $input,
42
        query           => $input,
43
        type            => 'intranet',
43
        type            => 'intranet',
44
        authnotrequired => 0,
44
        authnotrequired => 0,
45
        flagsrequired   => { borrowers => 1, updatecharges => $updatecharges_permissions },
45
        flagsrequired   => { borrowers => 'edit_borrowers', updatecharges => $updatecharges_permissions },
46
        debug           => 1,
46
        debug           => 1,
47
    }
47
    }
48
);
48
);
(-)a/members/printfeercpt.pl (-1 / +1 lines)
Lines 42-48 my ($template, $loggedinuser, $cookie) Link Here
42
                            query => $input,
42
                            query => $input,
43
                            type => "intranet",
43
                            type => "intranet",
44
                            authnotrequired => 0,
44
                            authnotrequired => 0,
45
                            flagsrequired => {borrowers => 1, updatecharges => 'remaining_permissions'},
45
                            flagsrequired => {borrowers => 'edit_borrowers', updatecharges => 'remaining_permissions'},
46
                            debug => 1,
46
                            debug => 1,
47
                            });
47
                            });
48
48
(-)a/members/printinvoice.pl (-1 / +1 lines)
Lines 40-46 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
40
        query           => $input,
40
        query           => $input,
41
        type            => "intranet",
41
        type            => "intranet",
42
        authnotrequired => 0,
42
        authnotrequired => 0,
43
        flagsrequired => { borrowers => 1, updatecharges => 'remaining_permissions' },
43
        flagsrequired => { borrowers => 'edit_borrowers', updatecharges => 'remaining_permissions' },
44
        debug           => 1,
44
        debug           => 1,
45
    }
45
    }
46
);
46
);
(-)a/members/purchase-suggestions.pl (-1 / +1 lines)
Lines 35-41 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
35
        query           => $input,
35
        query           => $input,
36
        type            => "intranet",
36
        type            => "intranet",
37
        authnotrequired => 0,
37
        authnotrequired => 0,
38
        flagsrequired   => { borrowers => 1 },
38
        flagsrequired   => { borrowers => 'edit_borrowers' },
39
        debug           => 1,
39
        debug           => 1,
40
    }
40
    }
41
);
41
);
(-)a/members/readingrec.pl (-1 / +1 lines)
Lines 46-52 my ($template, $loggedinuser, $cookie)= get_template_and_user({template_name => Link Here
46
				query => $input,
46
				query => $input,
47
				type => "intranet",
47
				type => "intranet",
48
				authnotrequired => 0,
48
				authnotrequired => 0,
49
				flagsrequired => {borrowers => 1},
49
                flagsrequired => {borrowers => 'edit_borrowers'},
50
				debug => 1,
50
				debug => 1,
51
				});
51
				});
52
52
(-)a/members/setstatus.pl (-1 / +1 lines)
Lines 35-41 use Koha::Patrons; Link Here
35
35
36
my $input = new CGI;
36
my $input = new CGI;
37
37
38
checkauth($input, 0, { borrowers => 1 }, 'intranet');
38
checkauth($input, 0, { borrowers => 'edit_borrowers' }, 'intranet');
39
39
40
my $destination = $input->param("destination") || '';
40
my $destination = $input->param("destination") || '';
41
my $borrowernumber=$input->param('borrowernumber');
41
my $borrowernumber=$input->param('borrowernumber');
(-)a/members/statistics.pl (-1 / +1 lines)
Lines 40-46 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
40
        query           => $input,
40
        query           => $input,
41
        type            => "intranet",
41
        type            => "intranet",
42
        authnotrequired => 0,
42
        authnotrequired => 0,
43
        flagsrequired   => { borrowers => 1 },
43
        flagsrequired   => { borrowers => 'edit_borrowers' },
44
        debug           => 1,
44
        debug           => 1,
45
    }
45
    }
46
);
46
);
(-)a/members/update-child.pl (-1 / +1 lines)
Lines 47-53 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
47
        query           => $input,
47
        query           => $input,
48
        type            => "intranet",
48
        type            => "intranet",
49
        authnotrequired => 0,
49
        authnotrequired => 0,
50
        flagsrequired   => { borrowers => 1 },
50
        flagsrequired   => { borrowers => 'edit_borrowers' },
51
        debug           => 1,
51
        debug           => 1,
52
    }
52
    }
53
);
53
);
(-)a/opac/opac-overdrive-search.pl (-1 / +1 lines)
Lines 33-39 my ($template, $loggedinuser, $cookie) Link Here
33
                                query => $cgi,
33
                                query => $cgi,
34
                                type => "opac",
34
                                type => "opac",
35
                                authnotrequired => 1,
35
                                authnotrequired => 1,
36
                                flagsrequired => {borrowers => 1},
36
                                flagsrequired => {borrowers => 'edit_borrowers'},
37
                                debug => 1,
37
                                debug => 1,
38
                                });
38
                                });
39
39
(-)a/opac/opac-search-history.pl (-1 / +1 lines)
Lines 41-47 my ($template, $loggedinuser, $cookie) = get_template_and_user( Link Here
41
        query => $cgi,
41
        query => $cgi,
42
        type => "opac",
42
        type => "opac",
43
        authnotrequired => 1,
43
        authnotrequired => 1,
44
        flagsrequired => {borrowers => 1},
44
        flagsrequired => {borrowers => 'edit_borrowers'},
45
        debug => 1,
45
        debug => 1,
46
    }
46
    }
47
);
47
);
(-)a/svc/checkouts (-1 / +1 lines)
Lines 41-47 my $session = get_session($sessionID); Link Here
41
my $userid   = $session->param('id');
41
my $userid   = $session->param('id');
42
42
43
unless (haspermission($userid, { circulate => 'circulate_remaining_permissions' })
43
unless (haspermission($userid, { circulate => 'circulate_remaining_permissions' })
44
    || haspermission($userid, { borrowers => '*' })) {
44
    || haspermission($userid, { borrowers => 'edit_borrowers' })) {
45
    exit 0;
45
    exit 0;
46
}
46
}
47
47
(-)a/svc/members/search (-2 / +1 lines)
Lines 36-42 my ($template, $user, $cookie) = get_template_and_user({ Link Here
36
    query           => $input,
36
    query           => $input,
37
    type            => "intranet",
37
    type            => "intranet",
38
    authnotrequired => 0,
38
    authnotrequired => 0,
39
    flagsrequired   => { borrowers => 1 }
39
    flagsrequired   => { borrowers => 'edit_borrowers' }
40
});
40
});
41
41
42
my $searchmember = $input->param('searchmember');
42
my $searchmember = $input->param('searchmember');
43
- 

Return to bug 18403