Bug 7996: (QA follow-up) Remove unnecessary permission check view logs template
authorKatrin Fischer <katrin.fischer.83@web.de>
Mon, 20 Aug 2018 07:04:37 +0000 (07:04 +0000)
committerNick Clemens <nick@bywatersolutions.com>
Wed, 22 Aug 2018 11:47:10 +0000 (11:47 +0000)
Permission is checked in the perl file, no need to check again
in the template.

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
koha-tmpl/intranet-tmpl/prog/en/modules/tools/viewlog.tt

index d1df207..65569ff 100644 (file)
@@ -81,7 +81,6 @@
        <div id="bd">
                <div id="yui-main">
                        <div class="yui-b">
-                [% IF ( CAN_user_tools_view_system_logs ) %]
                                <h1>Browse system logs</h1>
                                <form method="post" action="/cgi-bin/koha/tools/viewlog.pl">
                                        [% IF ( do_it ) %]
                                                <input type="hidden" name="do_it" value="1" />
                                        </fieldset>
                        </form>
-                [% END %]
                 [% IF ( do_it ) %]
                     [% IF ( total ) %]
                         <h4>[% total | html %] lines found.</h4>