View | Details | Raw Unified | Return to bug 14298
Collapse All | Expand All

(-)a/opac/sco/help.pl (-1 / +1 lines)
Lines 35-41 my ($template, $borrowernumber, $cookie) = get_template_and_user({ Link Here
35
     type => "opac",
35
     type => "opac",
36
    debug => 1,
36
    debug => 1,
37
    authnotrequired => 1,
37
    authnotrequired => 1,
38
      flagsrequired => {circulate => "circulate_remaining_permissions"},
38
    flagsrequired => {circulate => "self_checkout"},
39
});
39
});
40
40
41
if (C4::Context->preference('SelfCheckoutByLogin')) {
41
if (C4::Context->preference('SelfCheckoutByLogin')) {
(-)a/opac/sco/sco-main.pl (-1 / +2 lines)
Lines 65-75 if (C4::Context->preference('AutoSelfCheckAllowed')) Link Here
65
my ($template, $loggedinuser, $cookie) = get_template_and_user({
65
my ($template, $loggedinuser, $cookie) = get_template_and_user({
66
    template_name   => "sco/sco-main.tt",
66
    template_name   => "sco/sco-main.tt",
67
    authnotrequired => 0,
67
    authnotrequired => 0,
68
    flagsrequired => { circulate => "circulate_remaining_permissions" },
68
    flagsrequired => { circulate => "self_checkout" },
69
    query => $query,
69
    query => $query,
70
    type  => "opac",
70
    type  => "opac",
71
    debug => 1,
71
    debug => 1,
72
});
72
});
73
73
if (C4::Context->preference('SelfCheckoutByLogin'))
74
if (C4::Context->preference('SelfCheckoutByLogin'))
74
{
75
{
75
    $template->param(authbylogin  => 1);
76
    $template->param(authbylogin  => 1);
(-)a/opac/sco/sco-patron-image.pl (-2 / +1 lines)
Lines 22-28 use warnings; Link Here
22
use C4::Service;
22
use C4::Service;
23
use C4::Members;
23
use C4::Members;
24
24
25
my ($query, $response) = C4::Service->init(circulate => 'circulate_remaining_permissions');
25
my ($query, $response) = C4::Service->init(circulate => 'self_checkout');
26
26
27
unless (C4::Context->preference('WebBasedSelfCheck')) {
27
unless (C4::Context->preference('WebBasedSelfCheck')) {
28
    print $query->header(status => '403 Forbidden - web-based self-check not enabled');
28
    print $query->header(status => '403 Forbidden - web-based self-check not enabled');
29
- 

Return to bug 14298