Bugzilla – Attachment 73425 Details for
Bug 20489
Prevent DB user login
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 20489: Remove warnings from the interface
Bug-20489-Remove-warnings-from-the-interface.patch (text/plain), 3.95 KB, created by
Jonathan Druart
on 2018-03-29 14:00:10 UTC
(
hide
)
Description:
Bug 20489: Remove warnings from the interface
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2018-03-29 14:00:10 UTC
Size:
3.95 KB
patch
obsolete
>From c964f208664fd66e44ecb20ca670be9d5b425c17 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Wed, 28 Mar 2018 14:49:18 -0300 >Subject: [PATCH] Bug 20489: Remove warnings from the interface > >--- > koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt | 7 ------- > koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt | 11 ----------- > mainpage.pl | 7 ------- > opac/opac-user.pl | 4 ---- > 4 files changed, 29 deletions(-) > >diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >index dc619926ba..f6fcd39fe0 100644 >--- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >+++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt >@@ -34,13 +34,6 @@ > [% END %] > </div> <!-- /.col-sm-2 --> > <div class="col-sm-9"> >- [% IF adminWarning %] >- <div id="adminwarning" class="dialog alert"> >- <p><strong>Warning:</strong> You are logged in as the database administrative user. This is not recommended because some parts of Koha will not function as expected when using this account.</p> >- <p>Please log in instead with a regular staff account. To create a staff account, create a library, a patron category 'Staff' and add a new patron. Then give this patron permissions from 'More' in the toolbar.</p> >- <p><a class="btn btn-default btn-sm" href="/cgi-bin/koha/members/members-home.pl"><i class="fa fa-plus"> </i> Create patron</a></p> >- </div> >- [% END %] > <div class="row"> > <div class="col-xs-6"> > <ul class="biglinks-list"> >diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >index fed6f23ed0..033a121e2b 100644 >--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >+++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-user.tt >@@ -38,17 +38,6 @@ > <div class="span10"> > <div id="userdetails" class="maincontent"> > >- [% IF adminWarning %] >- <div id="adminwarning" class="dialog alert"> >- <p> >-<strong><i class="fa fa-exclamation-triangle"> </i> Warning:</strong> >-Using this account is not recommended because some parts of Koha will not function as expected. Instead, please log in with a different account. >-<a class="btn btn-small" href="/cgi-bin/koha/opac-main.pl?logout.x=1"> >-<i class="fa fa-sign-out"> </i> Log out</a> >- </p> >- </div> >- [% END %] >- > [% INCLUDE 'opac-note.inc' %] > > <h2>Hello, [% INCLUDE 'patron-title.inc' category_type = BORROWER_INFO.category_type firstname = BORROWER_INFO.firstname surname = BORROWER_INFO.surname othernames = BORROWER_INFO.othernames cardnumber = BORROWER_INFO.cardnumber %] >diff --git a/mainpage.pl b/mainpage.pl >index 47f56ad27f..da6aaee924 100755 >--- a/mainpage.pl >+++ b/mainpage.pl >@@ -84,11 +84,4 @@ $template->param( > pending_article_requests => $pending_article_requests, > ); > >-# >-# warn user if they are using mysql/admin login >-# >-unless ($loggedinuser) { >- $template->param(adminWarning => 1); >-} >- > output_html_with_http_headers $query, $cookie, $template->output; >diff --git a/opac/opac-user.pl b/opac/opac-user.pl >index bdd002d342..5528fd7101 100755 >--- a/opac/opac-user.pl >+++ b/opac/opac-user.pl >@@ -88,10 +88,6 @@ my $canrenew = 1; > > $template->param( shibbolethAuthentication => C4::Context->config('useshibboleth') ); > >-if (!$borrowernumber) { >- $template->param( adminWarning => 1 ); >-} >- > # get borrower information .... > my $patron = Koha::Patrons->find( $borrowernumber ); > my $borr = $patron->unblessed; >-- >2.11.0
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 20489
:
73400
|
73402
|
73425
|
73528
|
73529
|
73543
|
73544
|
74150
|
74151