Bugzilla – Attachment 11620 Details for
Bug 8641
Add information warning about log-in as root user to About->System information
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 8641 - Add information warning about log-in as root user to About->System information
Bug-8641---Add-information-warning-about-log-in-as.patch (text/plain), 2.28 KB, created by
Jared Camins-Esakov
on 2012-08-14 19:04:30 UTC
(
hide
)
Description:
Bug 8641 - Add information warning about log-in as root user to About->System information
Filename:
MIME Type:
Creator:
Jared Camins-Esakov
Created:
2012-08-14 19:04:30 UTC
Size:
2.28 KB
patch
obsolete
>From 6b9dd9137890b6dda5b2b8deb22823251b13405e Mon Sep 17 00:00:00 2001 >From: Marc Veron <veron@veron.ch> >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 >Content-Type: text/plain; charset="UTF-8" > >Add warning to 'About->System information' if an user is logged in as >database admiinsitrative user (root user). > >Signed-off-by: Jared Camins-Esakov <jcamins@cpbibliography.com> >--- > about.pl | 3 +++ > koha-tmpl/intranet-tmpl/prog/en/modules/about.tt | 5 +++++ > 2 files changed, 8 insertions(+), 0 deletions(-) > >diff --git a/about.pl b/about.pl >index daf6829..3296182 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 11d6834..1781d4a 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 @@ > </div> > > <div id="sysinfo"> >+ [% IF (warnIsRootUser) %] >+ <h2>Warning regarding current user</h2> >+ <p>It seems that you are logged in as database administrative user. A lot of things will not work with this account.</p> >+ <p>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.</p> >+ [% END %] > <h2>Warnings regarding the system configuration</h2> > [% IF ( (prefNoZebra) || (warnPrefBiblioAddsAuthorities) || warnPrefEasyAnalyticalRecords ) %] > <table> >-- >1.7.2.5
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 8641
:
11618
|
11619
|
11620
|
13686
|
13694
|
13719
|
13742
|
13751
|
13825
|
13826