From 60790d0aef8302983fb6aeb775e1c9ce8f8cd8d3 Mon Sep 17 00:00:00 2001 From: Marc Veron Date: Tue, 14 Aug 2012 20:45:22 +0200 Subject: [PATCH] Bug 8641 - Add information warning about log-in as root user to About->System information Add warning to 'About->System information' if an user is logged in as database admiinsitrative user (root user). Signed-off-by: Jared Camins-Esakov Signed-off-by: Paul Poulain --- about.pl | 3 +++ koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 5 +++++ 2 files changed, 8 insertions(+) diff --git a/about.pl b/about.pl index daf682950f..329618220f 100755 --- a/about.pl +++ b/about.pl @@ -72,6 +72,8 @@ my $warnPrefEasyAnalyticalRecords = ( $prefEasyAnalyticalRecords && $prefUseCo my $errZebraConnection = C4::Context->Zconn("biblioserver",0)->errcode(); +my $warnIsRootUser = (! $loggedinuser); + $template->param( kohaVersion => $kohaVersion, osVersion => $osVersion, @@ -87,6 +89,7 @@ $template->param( warnPrefBiblioAddsAuthorities => $warnPrefBiblioAddsAuthorities, warnPrefEasyAnalyticalRecords => $warnPrefEasyAnalyticalRecords, errZebraConnection => $errZebraConnection, + warnIsRootUser => $warnIsRootUser, ); my @components = (); diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt index 620dd35a6d..32d87c5d8e 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/about.tt @@ -98,6 +98,11 @@
+ [% IF (warnIsRootUser) %] +

Warning regarding current user

+

It seems that you are logged in as database administrative user. A lot of things will not work with this account.

+

Usually you need to log in with a regular staff account. To create a staff account, create a branch, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.

+ [% END %]

Warnings regarding the system configuration

[% IF ( (prefNoZebra) || (warnPrefBiblioAddsAuthorities) || warnPrefEasyAnalyticalRecords ) %] -- 2.39.5