Test plan:
* log-in staff interface with admin (mysql) account => there's a large warning on the homepage
* log-in with another account => nothing displayed
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
Passed-QA-by: Jonathan Druart <jonathan.druart@biblibre.com>
Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com>
<div id="bd" role="main">
<div id="yui-main">
<div class="yui-b"><div class="yui-g">
+ [% IF adminWarning %]
+ <div id="adminwarning"i class="alert">
+ <p>Warning: you're logged-in with the admin login. This a 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> 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 ) %]
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;