Commit 23d57dd7 authored by Benjamin Rokseth's avatar Benjamin Rokseth
Browse files

koha: move adminwarning to Auth template params

parent 7fe37d62
......@@ -203,6 +203,7 @@ sub setTemplatePermissions {
warn "TEMPLATE CALLED WITH ADMINUSER - BETTER REMOVE THIS";
$auth->{permissions} = { superlibrarian => 1 };
$template->param(loggedinusername => $id);
$template->param(adminWarning => 1);
} else {
$template->param("USER_INFO" => $auth->{user});
$template->param(loggedinusername => $auth->{user}->{userid});
......
......@@ -87,8 +87,8 @@ $template->param(
#
# warn user if they are using mysql/admin login
#
unless ($loggedinuser) {
$template->param(adminWarning => 1);
}
# unless ($loggedinuser) {
# $template->param(adminWarning => 1);
# }
output_html_with_http_headers $query, $cookie, $template->output;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment