Summary: | Hide link to plugin management if plugins are not enabled | ||
---|---|---|---|
Product: | Koha | Reporter: | Owen Leonard <oleonard> |
Component: | System Administration | Assignee: | Owen Leonard <oleonard> |
Status: | CLOSED FIXED | QA Contact: | Testopia <testopia> |
Severity: | minor | ||
Priority: | P5 - low | CC: | fridolin.somers, gmcharlt, martin.renvoize, nick |
Version: | Main | ||
Hardware: | All | ||
OS: | All | ||
Change sponsored?: | --- | Patch complexity: | Trivial patch |
Documentation contact: | Documentation submission: | ||
Text to go in the release notes: | Version(s) released in: | ||
Circulation function: | |||
Attachments: |
Bug 20383: Hide link to plugin management if plugins are not enabled
Bug 20383: Hide link to plugin management if plugins are not enabled Bug 20383: Hide link to plugin management if plugins are not enabled |
Description
Owen Leonard
2018-03-13 10:10:06 UTC
Created attachment 72766 [details] [review] Bug 20383: Hide link to plugin management if plugins are not enabled This patch adds a check in admin-home.pl to see whether plugins are enabled. If plugins are disabled, the link to plugins management is hidden even if the user has plugin management permission. To test, view the administration home page with plugins enabled and disabled via the enable_plugins flag in the Koha configuration file. Also test using users with different plugins permissions: - Plugins enabled - CAN_user_plugins = 1 -> Plugins link appears - CAN_user_plugins = 0 -> Plugins link hidden - Plugins disabled - CAN_user_plugins = 1, - CAN_user_plugins = 0 -> Plugins link hidden Created attachment 72811 [details] [review] Bug 20383: Hide link to plugin management if plugins are not enabled This patch adds a check in admin-home.pl to see whether plugins are enabled. If plugins are disabled, the link to plugins management is hidden even if the user has plugin management permission. To test, view the administration home page with plugins enabled and disabled via the enable_plugins flag in the Koha configuration file. Also test using users with different plugins permissions: - Plugins enabled - CAN_user_plugins = 1 -> Plugins link appears - CAN_user_plugins = 0 -> Plugins link hidden - Plugins disabled - CAN_user_plugins = 1, - CAN_user_plugins = 0 -> Plugins link hidden Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Created attachment 73071 [details] [review] Bug 20383: Hide link to plugin management if plugins are not enabled This patch adds a check in admin-home.pl to see whether plugins are enabled. If plugins are disabled, the link to plugins management is hidden even if the user has plugin management permission. To test, view the administration home page with plugins enabled and disabled via the enable_plugins flag in the Koha configuration file. Also test using users with different plugins permissions: - Plugins enabled - CAN_user_plugins = 1 -> Plugins link appears - CAN_user_plugins = 0 -> Plugins link hidden - Plugins disabled - CAN_user_plugins = 1, - CAN_user_plugins = 0 -> Plugins link hidden Signed-off-by: Séverine QUEUNE <severine.queune@bulac.fr> Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de> Pushed to master for 18.05, thanks to everybody involved! Awesome work all, backported to stable for 17.11.05 Pushed to 17.05.x for 17.05.11 |