Bugzilla – Attachment 77974 Details for
Bug 7996
Patron modification log requires parameters permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 7996: Correct wrong permissions for modification log
Bug-7996-Correct-wrong-permissions-for-modificatio.patch (text/plain), 3.47 KB, created by
Nick Clemens (kidclamp)
on 2018-08-17 11:11:54 UTC
(
hide
)
Description:
Bug 7996: Correct wrong permissions for modification log
Filename:
MIME Type:
Creator:
Nick Clemens (kidclamp)
Created:
2018-08-17 11:11:54 UTC
Size:
3.47 KB
patch
obsolete
>From 802f28322a5addbad7efdc898603498ba1b7bb9d Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Fri, 17 Aug 2018 11:07:41 +0000 >Subject: [PATCH] Bug 7996: Correct wrong permissions for modification log > >To test: > 1 - Create a staff patron with catalogue,borrowers,and view_system_logs >permissions > 2 - Log in using that patron > 3 - Go to tools > 4 - Click 'Log viewer' > 5 - You get a blank page > 6 - View borrower circ screen, note you do not see 'Modification log' > 7 - Edit a borrower, note you do not see 'Modification log' > 8 - Apply patch > 9 - 'Log Viewer' should now load correctly >10 - You should see 'Modification log' tab during circ >11 - You should see 'Modification log' tab when editing patron >--- > koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >index 2d36462..950cc8e 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc >@@ -96,7 +96,7 @@ > [% IF ( holdshistoryview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/holdshistory.pl?borrowernumber=[% patron.borrowernumber %]">Holds history</a></li> > [% END %] > [% END %] >- [% IF ( CAN_user_parameters ) %] >+ [% IF ( CAN_user_tools_view_system_logs ) %] > [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&modules=circulation&object=[% patron.borrowernumber %]&src=circ">Modification log</a></li> > [% END %] > [% IF CAN_user_borrowers_edit_borrowers %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc >index 43d0e5a..34d0812 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/members-menu.inc >@@ -9,7 +9,7 @@ > [% IF ( intranetreadinghistory ) %] > [% IF ( readingrecordview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/readingrec.pl?borrowernumber=[% borrowernumber %]">Circulation history</a></li> > [% END %] >- [% IF ( CAN_user_parameters ) %] >+ [% IF ( CAN_user_tools_view_system_logs ) %] > [% IF ( logview ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/tools/viewlog.pl?do_it=1&modules=MEMBERS&action=MODIFY&object=[% borrowernumber %]">Modification log</a></li> > [% END %] > [% IF ( sentnotices ) %]<li class="active">[% ELSE %]<li>[% END %]<a href="/cgi-bin/koha/members/notices.pl?borrowernumber=[% borrowernumber %]">Notices</a></li> >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >index b183dca..a92b3d3 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt >@@ -80,7 +80,7 @@ > <div id="bd"> > <div id="yui-main"> > <div class="yui-b"> >- [% IF ( CAN_user_reports ) %] >+ [% IF ( CAN_user_tools_view_system_logs ) %] > <h1>Browse system logs</h1> > <form method="post" action="/cgi-bin/koha/tools/viewlog.pl"> > [% IF ( do_it ) %] >-- >2.1.4
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 7996
:
9274
|
9275
|
35262
|
77974
|
77991
|
77993
|
78052
|
78053