Bugzilla – Attachment 73312 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 - Don't kick superlibrarians out of the opac
Bug-20479---Dont-kick-superlibrarians-out-of-the-o.patch (text/plain), 1.32 KB, created by
Claire Gravely
on 2018-03-27 12:54:39 UTC
(
hide
)
Description:
Bug 20479 - Don't kick superlibrarians out of the opac
Filename:
MIME Type:
Creator:
Claire Gravely
Created:
2018-03-27 12:54:39 UTC
Size:
1.32 KB
patch
obsolete
>From fe28719806b2f0cc66c89237b690226475f5cdf8 Mon Sep 17 00:00:00 2001 >From: Nick Clemens <nick@bywatersolutions.com> >Date: Tue, 27 Mar 2018 12:47:57 +0000 >Subject: [PATCH] Bug 20479 - Don't kick superlibrarians out of the opac > >To test: >1 - Try to log in to opac with a superlibrarian >2 - Everythign goes wrong >3 - Apply patch >4 - Try to log in with superlibrarian >5 - You can sign in > >Signed-off-by: Claire Gravely <claire.gravely@bsz-bw.de> >--- > C4/Auth.pm | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index e887bc0..09df5a9 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -196,6 +196,7 @@ sub get_template_and_user { > elsif ( > # If the user logged in is the SCI user and they try to go out of the SCI module, > # kick them out unless it is SCO with a valid permission >+# or they are a superlibrarian > $in->{template_name} !~ m|sci/| > && $user > && haspermission( $user, { self_check => 'self_checkin_module' } ) >@@ -203,7 +204,7 @@ sub get_template_and_user { > $in->{template_name} =~ m|sco/| && haspermission( > $user, { self_check => 'self_checkout_module' } > ) >- ) >+ ) && Koha::Patrons->find({userid=>$user})->flags != 1 > ) > { > $kick_out = 1; >-- >2.1.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 20479
:
73311
|
73312
|
73321
|
73326
|
73327
|
73328
|
73329
|
73331
|
73337