Bugzilla – Attachment 73331 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 $flag instead of fetching patron
Bug-20479-Use-flag-instead-of-fetching-patron.patch (text/plain), 917 bytes, created by
Jonathan Druart
on 2018-03-27 16:29:37 UTC
(
hide
)
Description:
Bug 20479: Use $flag instead of fetching patron
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-27 16:29:37 UTC
Size:
917 bytes
patch
obsolete
>From 4ef907a15d06e28528d0b70cda6624849817315c 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 $flag 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.11.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 20479
:
73311
|
73312
|
73321
|
73326
|
73327
|
73328
|
73329
| 73331 |
73337