Bugzilla – Attachment 9842 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.46 KB, created by
Owen Leonard
on 2012-05-29 20:15:08 UTC
(
hide
)
Description:
Bug 8160 - Link to cataloging appears for users without cataloging permission
Filename:
MIME Type:
Creator:
Owen Leonard
Created:
2012-05-29 20:15:08 UTC
Size:
2.46 KB
patch
obsolete
>From aecf187d84d7e4d9ff5565f450ce3a42ad56da46 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 >Content-Type: text/plain; charset="utf-8" > >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. >--- > .../intranet-tmpl/prog/en/includes/header.inc | 2 +- > .../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.9.5
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