From 581ee6d4e4a624cafb8045cc03637c37d02483eb Mon Sep 17 00:00:00 2001 From: Martin Renvoize Date: Fri, 1 Mar 2024 08:02:47 +0000 Subject: [PATCH] Bug 36206: Expose administration page to users with plugins_admin permission This patch updates the intranet home page logic such that the administration button appears for those users with just the 'admin' subpermission of plugins to allow them to access such plugins. We also update the display logic found inside the admin-home page so that user see plugin management appropriately. --- .../intranet-tmpl/prog/en/modules/admin/admin-home.tt | 10 ++++++---- .../intranet-tmpl/prog/en/modules/intranet-main.tt | 2 +- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt index f74e4274a10..67ffcce2f86 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt @@ -148,17 +148,19 @@ [% END %] - [% IF CAN_user_plugins && plugins_enabled %] + [% IF plugins_enabled %]

Plugins

+ [% IF CAN_user_plugins_manage || CAN_user_plugins_configure %]
Manage plugins
View, manage, configure and run plugins.
- [% IF ( CAN_user_plugins_admin && admin_plugins ) %] - [% FOREACH plugin IN admin_plugins %] + [% END %] + [% IF ( CAN_user_plugins_admin && admin_plugins ) %] + [% FOREACH plugin IN admin_plugins %]
[% plugin.metadata.name | html %]
[% plugin.metadata.description | html %]
- [% END %] [% END %] + [% END %]
[% END %] 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 845d7759eb7..329233b6375 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/intranet-main.tt @@ -166,7 +166,7 @@ [% END %] - [% IF ( CAN_user_parameters ) %] + [% IF ( CAN_user_parameters || CAN_user_plugins_admin ) %]
  • Koha administration
  • -- 2.44.0