Bug 38771: (follow-up) Fix the authentication log not enabled message
This corrects the display of the "Log not enabled" message for the
authentication module in the log viewer.
If either AuthFailureLog or AuthSuccessLog system preferences are
set to "Don't log":
- the "Log not enabled" warning icon is now shown
- clicking the triangle icon now links to the two system
preferences
Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
(cherry picked from commit 86e8835da0)
Signed-off-by: Paul Derscheid <paul.derscheid@lmscloud.de>
This commit is contained in:
parent
678af00b32
commit
0ec0afb8d6
|
|
@ -1,6 +1,6 @@
|
|||
[% BLOCK translate_log_module %]
|
||||
[% SWITCH module %]
|
||||
[% CASE 'AUTH' %]<span>Authentication</span>[% UNLESS Koha.Preference('AuthFailureLog') || Koha.Preference('AuthSuccessLog') %] <i class="log-disabled fa-solid fa-triangle-exclamation" title="Log not enabled" data-log="AuthFailureLog"></i>[% END %]
|
||||
[% CASE 'AUTH' %]<span>Authentication</span>[% UNLESS Koha.Preference('AuthFailureLog') && Koha.Preference('AuthSuccessLog') %] <i class="log-disabled fa-solid fa-triangle-exclamation" title="Log not enabled" data-log="FailureLog|SuccessLog"></i>[% END %]
|
||||
[% CASE 'CATALOGUING' %]<span>Cataloging</span>[% UNLESS Koha.Preference('CataloguingLog') %] <i class="log-disabled fa-solid fa-triangle-exclamation" title="Log not enabled" data-log="CataloguingLog"></i>[% END %]
|
||||
|
||||
[% CASE 'AUTHORITIES' %]<span>Authorities</span>[% UNLESS Koha.Preference('AuthoritiesLog') %] <i class="log-disabled fa-solid fa-triangle-exclamation" title="Log not enabled" data-log="AuthoritiesLog"></i>[% END %]
|
||||
|
|
|
|||
Loading…
Reference in New Issue