Bugzilla – Attachment 46499 Details for
Bug 15472
Do not display links to circulation.pl if remaining_permissions is not set
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
[SIGNED-OFF]Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set
SIGNED-OFFBug-15472-Do-not-display-links-to-circul.patch (text/plain), 2.80 KB, created by
Héctor Eduardo Castro Avalos
on 2016-01-11 20:21:11 UTC
(
hide
)
Description:
[SIGNED-OFF]Bug 15472: Do not display links to circulation.pl if remaining_permissions is not set
Filename:
MIME Type:
Creator:
Héctor Eduardo Castro Avalos
Created:
2016-01-11 20:21:11 UTC
Size:
2.80 KB
patch
obsolete
>From 36f13aa82ce130e024c017c494ba49cf9055ce57 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] [SIGNED-OFF]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. > >Signed-off-by: Hector Castro <hector.hecaxmmx@gmail.com> >Works as advertised >--- > 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> >-- >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 15472
:
46265
|
46499
|
46577