@@ -, +, @@ the plugin --- Koha/REST/Plugin/PluginRoutes.pm | 3 +-- Koha/REST/V1.pm | 4 ++-- 2 files changed, 3 insertions(+), 4 deletions(-) --- a/Koha/REST/Plugin/PluginRoutes.pm +++ a/Koha/REST/Plugin/PluginRoutes.pm @@ -45,8 +45,7 @@ sub register { my @plugins; - if ( C4::Context->config("enable_plugins") and - ! C4::Context->needs_install ) # Koha is installed + if ( C4::Context->config("enable_plugins") ) { # plugin needs to define a namespace @plugins = Koha::Plugins->new()->GetPlugins( --- a/Koha/REST/V1.pm +++ a/Koha/REST/V1.pm @@ -86,7 +86,7 @@ sub startup { spec => $spec, validator => undef } - ); + ) unless C4::Context->needs_install; # load only if Koha is installed $self->plugin( OpenAPI => { @@ -115,7 +115,7 @@ sub startup { spec => $spec, validator => $validator } - ); + ) unless C4::Context->needs_install; # load only if Koha is installed $self->plugin( OpenAPI => { --