+ [% IF adminWarning %]
+
+
+ [% END %]
Warning: you're logged-in with the admin login. This a a bad idea, and you are likely to encounter problems.
+You should create a patron and give it superlibrarian permissions.
+
+
-
[% IF ( CAN_user_circulate ) %]
diff --git a/mainpage.pl b/mainpage.pl
index f834985cfe..78daf3887d 100755
--- a/mainpage.pl
+++ b/mainpage.pl
@@ -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;