Bugzilla – Attachment 51231 Details for
Bug 16447
"Borrow Permission" should not be used anymore
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16447: Remove occurrence of the borrow permission which does no longer exist
Bug-16447-Remove-occurrence-of-the-borrow-permissi.patch (text/plain), 3.02 KB, created by
Jonathan Druart
on 2016-05-05 13:58:35 UTC
(
hide
)
Description:
Bug 16447: Remove occurrence of the borrow permission which does no longer exist
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-05-05 13:58:35 UTC
Size:
3.02 KB
patch
obsolete
>From cdd012ed7e1d3e7c1d409a24d5556e9aa86f1eaa Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Thu, 5 May 2016 14:52:04 +0100 >Subject: [PATCH] Bug 16447: Remove occurrence of the borrow permission which > does no longer exist > >Bug 7976 has removed this permission, but other patches re-added it... >Note that the occurrences in sendbasket.pl and opac/svc/login should >have been removed by bug 16447. > >Test plan: > git grep 'borrow => 1' >should not return any results. >--- > basket/sendbasket.pl | 2 +- > opac/opac-idref.pl | 1 - > opac/opac-news-rss.pl | 1 - > opac/opac-restrictedpage.pl | 1 - > opac/svc/login | 2 +- > 5 files changed, 2 insertions(+), 5 deletions(-) > >diff --git a/basket/sendbasket.pl b/basket/sendbasket.pl >index 254d9ff..14c9882 100755 >--- a/basket/sendbasket.pl >+++ b/basket/sendbasket.pl >@@ -59,7 +59,7 @@ if ( $email_add ) { > query => $query, > type => "intranet", > authnotrequired => 0, >- flagsrequired => { borrow => 1 }, >+ flagsrequired => { catalogue => 1 }, > } > ); > >diff --git a/opac/opac-idref.pl b/opac/opac-idref.pl >index 7335008..43692dd 100755 >--- a/opac/opac-idref.pl >+++ b/opac/opac-idref.pl >@@ -37,7 +37,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > query => $cgi, > type => "opac", > authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), >- flagsrequired => { borrow => 1 }, > } > ); > >diff --git a/opac/opac-news-rss.pl b/opac/opac-news-rss.pl >index 7b1fe9b..95cbd6d 100755 >--- a/opac/opac-news-rss.pl >+++ b/opac/opac-news-rss.pl >@@ -34,7 +34,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > type => "opac", > query => $input, > authnotrequired => ( C4::Context->preference("OpacPublic") ? 1 : 0 ), >- flagsrequired => { borrow => 1 }, > } > ); > >diff --git a/opac/opac-restrictedpage.pl b/opac/opac-restrictedpage.pl >index fbed158..2fc31b6 100755 >--- a/opac/opac-restrictedpage.pl >+++ b/opac/opac-restrictedpage.pl >@@ -40,7 +40,6 @@ my ( $template, $borrowernumber, $cookie ) = get_template_and_user( > query => $query, > type => "opac", > authnotrequired => $withinNetwork, >- flagsrequired => { borrow => 1 }, > debug => 1, > } > ); >diff --git a/opac/svc/login b/opac/svc/login >index e871f74..0b6298d 100755 >--- a/opac/svc/login >+++ b/opac/svc/login >@@ -43,7 +43,7 @@ if ( $response->is_success ) { > my $content = $response->decoded_content(); > my $decoded_json = decode_json($content); > my ( $userid, $cookie, $sessionID ) = >- checkauth( $query, 1, { borrow => 1 }, 'opac', $decoded_json->{'email'} ); >+ checkauth( $query, 1, {}, 'opac', $decoded_json->{'email'} ); > if ($userid) { # a valid user has logged in > print $query->header( -cookie => $cookie ); > print $decoded_json; >-- >2.7.0
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 16447
:
51231
|
51246
|
51253
|
51262