Bug 25672: Convert to restricting to listed repositories only
authorMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 25 Jul 2023 14:46:34 +0000 (15:46 +0100)
committerTomas Cohen Arazi <tomascohen@theke.io>
Tue, 31 Oct 2023 14:02:43 +0000 (11:02 -0300)
commitea220826499ff23d9a56de31992b7c6123d939e4
treec6d5c54ec5a21db45c34b02f67e0a5734c4c6874
parentaa8c26ae520667b17286dbac0f63a2583fb1b9e3
Bug 25672: Convert to restricting to listed repositories only

I think instead of a plain on/off switch we should use it in combination
with the plugin_repo's and set it to restrict to only those repos' (i.e.
disable uploads entirely if no repo's are listed, or just allow those
repo's when there are).

This patch achieves that, but only if plugins are installed via the
plugin browser method. We disable all direct upload avenues, so install
is blocked for other cases.

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: David Cook <dcook@prosentient.com.au>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
debian/templates/koha-conf-site.xml.in
etc/koha-conf.xml
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-disabled.tt
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt
koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-upload.tt
plugins/plugins-home.pl
plugins/plugins-uninstall.pl
plugins/plugins-upload.pl