Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
digibib
deichman
Commits
23d57dd7
Commit
23d57dd7
authored
Dec 21, 2018
by
Benjamin Rokseth
Browse files
koha: move adminwarning to Auth template params
parent
7fe37d62
Changes
2
Hide whitespace changes
Inline
Side-by-side
koha/Deichman/Auth.pm
View file @
23d57dd7
...
...
@@ -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
});
...
...
koha/mainpage.pl
View file @
23d57dd7
...
...
@@ -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
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment