Lines 88-94
$template->param(
Link Here
|
88 |
# warn user if they are using mysql/admin login |
88 |
# warn user if they are using mysql/admin login |
89 |
# |
89 |
# |
90 |
unless ($loggedinuser) { |
90 |
unless ($loggedinuser) { |
91 |
$template->param(adminWarning => 1); |
91 |
my $patrons = Koha::Patrons->search( { flags => 1 } )->count; |
|
|
92 |
my $patron_has_flag = Koha::Patron->check_if_patrons_have_flags(); |
93 |
my $dbh = C4::Context->dbh; |
94 |
if (!$patrons && !$patron_has_flag){ |
95 |
my $onboardingrequired = C4::Auth->check_onboarding_required(); |
96 |
if (!$onboardingrequired) { |
97 |
$dbh->do(q{UPDATE userflags SET onboardingrequired = 1 WHERE bit = ?}, {}, 0 ); |
98 |
} else { |
99 |
print $query->redirect("/cgi-bin/koha/installer/onboarding.pl"); |
100 |
exit; |
101 |
} |
102 |
} else { |
103 |
$template->param(adminWarning => 1); |
104 |
} |
92 |
} |
105 |
} |
93 |
|
106 |
|
94 |
output_html_with_http_headers $query, $cookie, $template->output; |
107 |
output_html_with_http_headers $query, $cookie, $template->output; |
95 |
- |
|
|