Merge branch 'bug_9008' into 3.12-master
This commit is contained in:
commit
6a265eb793
|
|
@ -16,7 +16,14 @@
|
|||
<div id="bd" role="main">
|
||||
<div id="yui-main">
|
||||
<div class="yui-b"><div class="yui-g">
|
||||
[% IF adminWarning %]
|
||||
<div id="adminwarning" class="dialog alert">
|
||||
<p><strong>Warning:</strong> You're logged in with the database administrator account. This a bad idea, and you are likely to encounter problems.</p>
|
||||
<p>You should <a href="/cgi-bin/koha/members/memberentry.pl?op=add">create a patron</a> to use when administering Koha and give it superlibrarian permissions.</p>
|
||||
</div>
|
||||
[% END %]
|
||||
<div class="yui-u first">
|
||||
|
||||
<div id="area-list-left">
|
||||
<ul class="biglinks-list">
|
||||
[% IF ( CAN_user_circulate ) %]
|
||||
|
|
|
|||
|
|
@ -60,4 +60,11 @@ $template->param(
|
|||
pendingsuggestions => $pendingsuggestions
|
||||
);
|
||||
|
||||
#
|
||||
# warn user if he is using mysql/admin login
|
||||
#
|
||||
unless ($loggedinuser) {
|
||||
$template->param(adminWarning => 1);
|
||||
}
|
||||
|
||||
output_html_with_http_headers $query, $cookie, $template->output;
|
||||
|
|
|
|||
Loading…
Reference in New Issue