Bugzilla – Attachment 15652 Details for
Bug 9663
Individual bibliographic record "Save" option requires export permission
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 9663 - Individual bibliographic record "Save" option requires export permission
Bug-9663---Individual-bibliographic-record-Save-op.patch (text/plain), 2.11 KB, created by
Chris Cormack
on 2013-02-25 09:16:04 UTC
(
hide
)
Description:
Bug 9663 - Individual bibliographic record "Save" option requires export permission
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2013-02-25 09:16:04 UTC
Size:
2.11 KB
patch
obsolete
>From a4a398a35de94731fd8b618c97b2f025e643a6ba Mon Sep 17 00:00:00 2001 >From: Owen Leonard <oleonard@myacpl.org> >Date: Tue, 19 Feb 2013 12:10:40 -0500 >Subject: [PATCH] Bug 9663 - Individual bibliographic record "Save" option > requires export permission > >This patch corrects permission on the export option available on >catalogue pages in the staff client (detail.pl, MARCdetail.pl, etc) so >that users no longer require "export_catalogue" permission. >"export_catalogue" permission is required only for tools/export.pl. > >This patch also corrects some crazy nearby indentation. Sorry, couldn't >resist. > >To test, visit a page like detail.pl with and without "export_catalogue" >permission. It should be possible to save the record as MODS, MARCXML, >MARC, etc. without error. > >Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz> >--- > catalogue/export.pl | 14 +++++++------- > 1 file changed, 7 insertions(+), 7 deletions(-) > >diff --git a/catalogue/export.pl b/catalogue/export.pl >index 3a76084..26e189b 100755 >--- a/catalogue/export.pl >+++ b/catalogue/export.pl >@@ -12,13 +12,13 @@ use CGI; > > my $query = new CGI; > my ( $template, $loggedinuser, $cookie ) = get_template_and_user({ >- template_name => "tools/export.tt", >- query => $query, >- type => "intranet", >- authnotrequired => 0, >- flagsrequired => { tools => 'export_catalog' }, >- debug => 1, >- }); >+ template_name => "tools/export.tt", >+ query => $query, >+ type => "intranet", >+ authnotrequired => 0, >+ flagsrequired => { catalogue => 1 }, >+ debug => 1, >+ }); > > my $op=$query->param("op"); > my $format=$query->param("format"); >-- >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 9663
:
15555
|
15652
|
15756