Bugzilla – Attachment 9898 Details for
Bug 8160
Link to cataloging appears for users without cataloging permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8160 - Link to cataloging appears for users without cataloging permission
Bug-8160---Link-to-cataloging-appears-for-users-wi.patch (text/plain), 2.49 KB, created by
Chris Cormack
on 2012-06-01 23:07:26 UTC
(
hide
)
Description:
Bug 8160 - Link to cataloging appears for users without cataloging permission
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2012-06-01 23:07:26 UTC
Size:
2.49 KB
patch
obsolete
>From 07644f80da7083538c824f950f243fa426bb691a Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 29 May 2012 11:30:28 -0400 >Subject: [PATCH] Bug 8160 - Link to cataloging appears for users without > cataloging permission > >This patch wraps cataloging links on the staff client home >page and in the header menu with checks for edit_catalogue >OR edit_items permission. > >To test, access the staff client as a user with various >permissions. The "cataloging" link on the main page and >in the header menu should only appear to a user with >edit_catalogue permission, edit_items permission, or both. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > 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 4783523..3d71d45 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >+++ b/koha-tmpl/intranet-tmpl/prog/en/includes/header.inc >@@ -16,7 +16,7 @@ > <div class="bd"> > <ul> > <li><a href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a></li> >- [% IF ( CAN_user_editcatalogue_edit_catalogue ) %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %] > <li><a href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a></li> > [% END %] > [% IF ( CAN_user_acquisition ) %] >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 0e9aed6..492dca4 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -41,7 +41,7 @@ > <a class="icon_general icon_lists" href="/cgi-bin/koha/virtualshelves/shelves.pl">Lists</a> > </li> > >- [% IF ( CAN_user_catalogue || CAN_user_editcatalogue ) %] >+ [% IF ( CAN_user_editcatalogue_edit_catalogue || CAN_user_editcatalogue_edit_items ) %] > <li> > <a class="icon_general icon_cataloging" href="/cgi-bin/koha/cataloguing/addbooks.pl">Cataloging</a> > </li> >-- >1.7.10
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 8160
:
9842
| 9898