From a750ebdbd994ef2a793e632eea4e35bbc7f1ec6d Mon Sep 17 00:00:00 2001 From: Nick Clemens 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 Signed-off-by: Owen Leonard Signed-off-by: Katrin Fischer Signed-off-by: Nick Clemens --- 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 03cc9a7a43..a69d099e92 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc +++ b/koha-tmpl/intranet-tmpl/prog/en/includes/circ-menu.inc @@ -97,7 +97,7 @@ [% IF ( holdshistoryview ) %]
  • [% ELSE %]
  • [% END %]Holds history
  • [% END %] [% END %] - [% IF ( CAN_user_parameters ) %] + [% IF ( CAN_user_tools_view_system_logs ) %] [% IF ( logview ) %]
  • [% ELSE %]
  • [% END %]Modification log
  • [% 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 d7d08b50b3..190bd4fb37 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 ) %]
  • [% ELSE %]
  • [% END %]Circulation history
  • [% END %] - [% IF ( CAN_user_parameters ) %] + [% IF ( CAN_user_tools_view_system_logs ) %] [% IF ( logview ) %]
  • [% ELSE %]
  • [% END %]Modification log
  • [% END %] [% IF ( sentnotices ) %]
  • [% ELSE %]
  • [% END %]Notices
  • 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 2656d967e8..d1df207c5c 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt @@ -81,7 +81,7 @@
    - [% IF ( CAN_user_reports ) %] + [% IF ( CAN_user_tools_view_system_logs ) %]

    Browse system logs

    [% IF ( do_it ) %] -- 2.39.5