Bugzilla – Attachment 143109 Details for
Bug 32080
Public lists not available after recent upgrade
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 29955: Fix method import issues
Bug-29955-Fix-method-import-issues.patch (text/plain), 1.73 KB, created by
Blou
on 2022-11-03 12:51:37 UTC
(
hide
)
Description:
Bug 29955: Fix method import issues
Filename:
MIME Type:
Creator:
Blou
Created:
2022-11-03 12:51:37 UTC
Size:
1.73 KB
patch
obsolete
>From fb14e667121cc5b6d036aaaf841e9f966a758718 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Mon, 22 Aug 2022 13:06:14 -0300 >Subject: [PATCH] Bug 29955: Fix method import issues > >This patch fixes this: > >$ prove t/db_dependent/Utils/Datatables_Virtualshelves.t >t/db_dependent/Utils/Datatables_Virtualshelves.t .. 2/13 Use of inherited AUTOLOAD for non-method Koha::Virtualshelf::haspermission() is no longer allowed at /kohadevbox/koha/Koha/Virtualshelf.pm line 248. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >https://bugs.koha-community.org/show_bug.cgi?id=32080 >Signed-off-by: Blou <blou@inlibro.com> >--- > Koha/Virtualshelf.pm | 6 +++--- > 1 file changed, 3 insertions(+), 3 deletions(-) > >diff --git a/Koha/Virtualshelf.pm b/Koha/Virtualshelf.pm >index 029a98b228..1de20a17d6 100644 >--- a/Koha/Virtualshelf.pm >+++ b/Koha/Virtualshelf.pm >@@ -18,7 +18,7 @@ package Koha::Virtualshelf; > use Modern::Perl; > > >-use C4::Auth qw( haspermission ); >+use C4::Auth; > > use Koha::Patrons; > use Koha::Database; >@@ -233,7 +233,7 @@ sub can_be_deleted { > > my $patron = Koha::Patrons->find( $borrowernumber ) or return 0; > >- return 1 if $self->is_public and haspermission( $patron->userid, { lists => 'delete_public_lists' } ); >+ return 1 if $self->is_public and C4::Auth::haspermission( $patron->userid, { lists => 'delete_public_lists' } ); > > return 0; > } >@@ -245,7 +245,7 @@ sub can_be_managed { > > my $patron = Koha::Patrons->find( $borrowernumber ) or return 0; > return 1 >- if $self->is_public and haspermission( $patron->userid, { lists => 'edit_public_lists' } ); >+ if $self->is_public and C4::Auth::haspermission( $patron->userid, { lists => 'edit_public_lists' } ); > return 0; > } > >-- >2.34.1
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 32080
:
143108
| 143109