Bugzilla – Attachment 73329 Details for
Bug 20479
Superlibrarians cannot log into opac
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20479: Use instead of fetching patron
Bug-20479-Use-instead-of-fetching-patron.patch (text/plain), 911 bytes, created by
Tomás Cohen Arazi (tcohen)
on 2018-03-27 16:14:27 UTC
(
hide
)
Description:
Bug 20479: Use instead of fetching patron
Filename:
MIME Type:
Creator:
Tomás Cohen Arazi (tcohen)
Created:
2018-03-27 16:14:27 UTC
Size:
911 bytes
patch
obsolete
>From c0bb9d948535e908ce95794ad2a640281e9a9572 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 27 Mar 2018 12:47:54 -0300 >Subject: [PATCH] Bug 20479: Use instead of fetching patron > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >--- > C4/Auth.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index e0cbbc5677..3f1c9dd2c5 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -204,7 +204,8 @@ sub get_template_and_user { > $in->{template_name} =~ m|sco/| && haspermission( > $user, { self_check => 'self_checkout_module' } > ) >- ) && Koha::Patrons->find({userid=>$user}) && Koha::Patrons->find({userid=>$user})->flags != 1 >+ ) >+ && $flags && $flags->{superlibrarian} != 1 > ) > { > $kick_out = 1; >-- >2.16.3
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 20479
:
73311
|
73312
|
73321
|
73326
|
73327
|
73328
|
73329
|
73331
|
73337