Bugzilla – Attachment 42250 Details for
Bug 14298
AutoSelfCheckID user should only be able to access SCO
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14298: Use the new permission in the sco scripts
Bug-14298-Use-the-new-permission-in-the-sco-script.patch (text/plain), 2.22 KB, created by
Chris Cormack
on 2015-09-02 22:20:11 UTC
(
hide
)
Description:
Bug 14298: Use the new permission in the sco scripts
Filename:
MIME Type:
Creator:
Chris Cormack
Created:
2015-09-02 22:20:11 UTC
Size:
2.22 KB
patch
obsolete
>From 3450ea238eb4a2f0978da0d5214c16ceb7274441 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 2 Sep 2015 16:10:45 +0100 >Subject: [PATCH] Bug 14298: Use the new permission in the sco scripts > >Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz> > >Note without this patch, you won't be able to access the SCO side. >So don't panic if you cant use SCO with just the first patch >--- > opac/sco/help.pl | 2 +- > opac/sco/sco-main.pl | 3 ++- > opac/sco/sco-patron-image.pl | 2 +- > 3 files changed, 4 insertions(+), 3 deletions(-) > >diff --git a/opac/sco/help.pl b/opac/sco/help.pl >index c41d737..412dc40 100755 >--- a/opac/sco/help.pl >+++ b/opac/sco/help.pl >@@ -35,7 +35,7 @@ my ($template, $borrowernumber, $cookie) = get_template_and_user({ > type => "opac", > debug => 1, > authnotrequired => 1, >- flagsrequired => {circulate => "circulate_remaining_permissions"}, >+ flagsrequired => {circulate => "self_checkout"}, > }); > > if (C4::Context->preference('SelfCheckoutByLogin')) { >diff --git a/opac/sco/sco-main.pl b/opac/sco/sco-main.pl >index b214f54..eff549d 100755 >--- a/opac/sco/sco-main.pl >+++ b/opac/sco/sco-main.pl >@@ -65,11 +65,12 @@ if (C4::Context->preference('AutoSelfCheckAllowed')) > my ($template, $loggedinuser, $cookie) = get_template_and_user({ > template_name => "sco/sco-main.tt", > authnotrequired => 0, >- flagsrequired => { circulate => "circulate_remaining_permissions" }, >+ flagsrequired => { circulate => "self_checkout" }, > query => $query, > type => "opac", > debug => 1, > }); >+ > if (C4::Context->preference('SelfCheckoutByLogin')) > { > $template->param(authbylogin => 1); >diff --git a/opac/sco/sco-patron-image.pl b/opac/sco/sco-patron-image.pl >index c6c0a19..9ace639 100755 >--- a/opac/sco/sco-patron-image.pl >+++ b/opac/sco/sco-patron-image.pl >@@ -22,7 +22,7 @@ use warnings; > use C4::Service; > use C4::Members; > >-my ($query, $response) = C4::Service->init(circulate => 'circulate_remaining_permissions'); >+my ($query, $response) = C4::Service->init(circulate => 'self_checkout'); > > unless (C4::Context->preference('WebBasedSelfCheck')) { > print $query->header(status => '403 Forbidden - web-based self-check not enabled'); >-- >2.5.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 14298
:
42229
|
42230
|
42231
|
42249
|
42250
|
42251
|
42511
|
42536
|
42537
|
42538
|
42539
|
45136
|
45139