Bugzilla – Attachment 73337 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: Ease readability - do not enter the block if not logged in
Bug-20479-Ease-readability---do-not-enter-the-bloc.patch (text/plain), 1.33 KB, created by
Jonathan Druart
on 2018-03-27 16:38:00 UTC
(
hide
)
Description:
Bug 20479: Ease readability - do not enter the block if not logged in
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-27 16:38:00 UTC
Size:
1.33 KB
patch
obsolete
>From 93f5cdc8d131e3ba918c2d172ca5f5233af8dbaf Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Tue, 27 Mar 2018 13:37:35 -0300 >Subject: [PATCH] Bug 20479: Ease readability - do not enter the block if not > logged in > >--- > C4/Auth.pm | 4 +--- > 1 file changed, 1 insertion(+), 3 deletions(-) > >diff --git a/C4/Auth.pm b/C4/Auth.pm >index 3f1c9dd2c5..13c4652d2e 100644 >--- a/C4/Auth.pm >+++ b/C4/Auth.pm >@@ -179,14 +179,13 @@ sub get_template_and_user { > ); > } > >- if ( $in->{type} eq 'opac' ) { >+ if ( $in->{type} eq 'opac' && $user ) { > my $kick_out; > > if ( > # If the user logged in is the SCO user and they try to go out of the SCO module, > # log the user out removing the CGISESSID cookie > $in->{template_name} !~ m|sco/| >- && $user > && C4::Context->preference('AutoSelfCheckID') > && $user eq C4::Context->preference('AutoSelfCheckID') > ) >@@ -198,7 +197,6 @@ sub get_template_and_user { > # 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' } ) > && !( > $in->{template_name} =~ m|sco/| && haspermission( >-- >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