Lines 45-57
InstallAuth - Authenticates Koha users for Install process
Link Here
|
45 |
|
45 |
|
46 |
my $query = new CGI; |
46 |
my $query = new CGI; |
47 |
|
47 |
|
48 |
my ($template, $borrowernumber, $cookie) |
48 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
49 |
= get_template_and_user({template_name => "opac-main.tt", |
49 |
{ template_name => "opac-main.tt", |
50 |
query => $query, |
50 |
query => $query, |
51 |
type => "opac", |
51 |
type => "opac", |
52 |
authnotrequired => 1, |
52 |
authnotrequired => 1, |
53 |
flagsrequired => {borrow => 1}, |
53 |
flagsrequired => { acquisition => '*' }, |
54 |
}); |
54 |
} |
|
|
55 |
); |
55 |
|
56 |
|
56 |
output_html_with_http_headers $query, $cookie, $template->output; |
57 |
output_html_with_http_headers $query, $cookie, $template->output; |
57 |
|
58 |
|
Lines 80-92
InstallAuth - Authenticates Koha users for Install process
Link Here
|
80 |
|
81 |
|
81 |
=item get_template_and_user |
82 |
=item get_template_and_user |
82 |
|
83 |
|
83 |
my ($template, $borrowernumber, $cookie) |
84 |
my ( $template, $borrowernumber, $cookie ) = get_template_and_user( |
84 |
= get_template_and_user({template_name => "opac-main.tt", |
85 |
{ template_name => "opac-main.tt", |
85 |
query => $query, |
86 |
query => $query, |
86 |
type => "opac", |
87 |
type => "opac", |
87 |
authnotrequired => 1, |
88 |
authnotrequired => 1, |
88 |
flagsrequired => {borrow => 1}, |
89 |
flagsrequired => { acquisition => '*' }, |
89 |
}); |
90 |
} |
|
|
91 |
); |
90 |
|
92 |
|
91 |
This call passes the C<query>, C<flagsrequired> and C<authnotrequired> |
93 |
This call passes the C<query>, C<flagsrequired> and C<authnotrequired> |
92 |
to C<&checkauth> (in this module) to perform authentification. |
94 |
to C<&checkauth> (in this module) to perform authentification. |
Lines 139-145
sub get_template_and_user {
Link Here
|
139 |
$template->param( CAN_user_borrowers => 1 ); |
141 |
$template->param( CAN_user_borrowers => 1 ); |
140 |
$template->param( CAN_user_permission => 1 ); |
142 |
$template->param( CAN_user_permission => 1 ); |
141 |
$template->param( CAN_user_reserveforothers => 1 ); |
143 |
$template->param( CAN_user_reserveforothers => 1 ); |
142 |
$template->param( CAN_user_borrow => 1 ); |
|
|
143 |
$template->param( CAN_user_editcatalogue => 1 ); |
144 |
$template->param( CAN_user_editcatalogue => 1 ); |
144 |
$template->param( CAN_user_updatecharges => 1 ); |
145 |
$template->param( CAN_user_updatecharges => 1 ); |
145 |
$template->param( CAN_user_acquisition => 1 ); |
146 |
$template->param( CAN_user_acquisition => 1 ); |