Bug 29020: Add link on the admin module
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 8 Oct 2021 13:57:31 +0000 (15:57 +0200)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Tue, 19 Oct 2021 07:29:09 +0000 (09:29 +0200)
It works! P1 and P2 are inverted in the test plan, but
the principle that user with manage permission accesses
bg jobs from the admin page and user who do not only
have access through main page is there.

Signed-off-by: Caroline Cyr La Rose <caroline.cyr-la-rose@inlibro.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/admin-menu.inc
koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt

index 771216c..421f59a 100644 (file)
         </ul>
     [% END %]
 
+    [% IF CAN_user_parameters_manage_background_jobs %]
+        <h5>Background jobs</h5>
+        <ul>
+            <li><a href="/cgi-bin/koha/admin/background_jobs.pl">Background jobs</a></li>
+        </ul>
+    [% END %]
+
     [% IF ( CAN_user_parameters_manage_marc_frameworks || CAN_user_parameters_manage_classifications || CAN_user_parameters_manage_matching_rules || CAN_user_parameters_manage_oai_sets || CAN_user_parameters_manage_item_search_fields || CAN_user_parameters_manage_search_engine_config ) %]
         <h5>Catalog</h5>
         <ul>
index 2a5f5db..57ed285 100644 (file)
                     <dd>View, manage, configure and run plugins.</dd>
                 </dl>
             [% END %]
+
+            [% IF CAN_user_parameters_manage_background_jobs %]
+                <h3>Background jobs</h3>
+                <dl>
+                    <dt><a href="/cgi-bin/koha/admin/background_jobs.pl">Manage background jobs</a></dt>
+                    <dd>View, manage and cancel background jobs.</dd>
+                </dl>
+            [% END %]
+
             </div>
 
             <div class="col-md-6 sysprefs">