Bugzilla – Attachment 46264 Details for
Bug 15442
Checkouts table will not display due to javascript error
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set
Bug-15472-Do-not-display-links-to-circulationpl-if.patch (text/plain), 2.77 KB, created by
Marc Véron
on 2016-01-05 15:07:21 UTC
(
hide
)
Description:
Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set
Filename:
MIME Type:
Creator:
Marc Véron
Created:
2016-01-05 15:07:21 UTC
Size:
2.77 KB
patch
obsolete
>From f12fc871a92642841a885f318ed5a825357eebe2 Mon Sep 17 00:00:00 2001 >From: =?UTF-8?q?Marc=20V=C3=A9ron?= <veron@veron.ch> >Date: Tue, 5 Jan 2016 15:57:07 +0100 >Subject: [PATCH] Bug 15472: Do not display links to circulation.pl if > remaining_permissions is not set > >If permission 'circulate_remaining_permissions' is not set, links to 'Circulation' >(/circ/circulation-home.pl) on the intranet home page lead to an error >message: "Error: You do not have permission to access this page." > >This patch hides the links if the permission is not set. > >To test: >- Apply patch >- Log in to the intranet (staff client) with a patron who has the permission > 'circulate_remaining_pernissions' not set >- Verify that no links to Circulation appear on the intranet start page > (menu top left and menu in main page area) >- Log in as a user who has the permission set. >- Verify that te links appear as appropriate. > >http://bugs.koha-community.org/show_bug.cgi?id=15442 >--- > koha-tmpl/intranet-tmpl/prog/en/includes/header.inc | 2 +- > koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >index 50b348b..e71c99f 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >@@ -2,7 +2,7 @@ > <div id="header" class="navbar navbar-static-top"> > <div class="navbar-inner"> > <ul id="toplevelmenu" class="nav"> >- [% IF ( CAN_user_circulate ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %] >+ [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %]<li><a href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a></li>[% END %] > [% IF ( CAN_user_borrowers ) %]<li><a href="/cgi-bin/koha/members/members-home.pl">Patrons</a></li>[% END %] > [% IF ( CAN_user_catalogue ) %]<li><a href="/cgi-bin/koha/catalogue/search.pl">Search</a></li>[% END %] > [% IF ( intranetbookbag ) %] >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >index d0be0da..be0e5aa 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -27,7 +27,7 @@ > > <div id="area-list-left"> > <ul class="biglinks-list"> >- [% IF ( CAN_user_circulate ) %] >+ [% IF ( CAN_user_circulate_circulate_remaining_permissions ) %] > <li> > <a class="icon_general icon_circulation" href="/cgi-bin/koha/circ/circulation-home.pl">Circulation</a> > </li> >-- >1.7.10.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 15442
:
46084
|
46086
|
46264