View | Details | Raw Unified | Return to bug 25131
Collapse All | Expand All

(-)a/Koha/REST/Plugin/PluginRoutes.pm (-2 / +1 lines)
Lines 45-52 sub register { Link Here
45
45
46
    my @plugins;
46
    my @plugins;
47
47
48
    if ( C4::Context->config("enable_plugins") and
48
    if ( C4::Context->config("enable_plugins") )
49
         ! C4::Context->needs_install ) # Koha is installed
50
    {
49
    {
51
        # plugin needs to define a namespace
50
        # plugin needs to define a namespace
52
        @plugins = Koha::Plugins->new()->GetPlugins(
51
        @plugins = Koha::Plugins->new()->GetPlugins(
(-)a/Koha/REST/V1.pm (-3 / +2 lines)
Lines 86-92 sub startup { Link Here
86
                spec               => $spec,
86
                spec               => $spec,
87
                validator          => undef
87
                validator          => undef
88
            }
88
            }
89
        );
89
        ) unless C4::Context->needs_install; # load only if Koha is installed
90
90
91
        $self->plugin(
91
        $self->plugin(
92
            OpenAPI => {
92
            OpenAPI => {
Lines 115-121 sub startup { Link Here
115
                spec      => $spec,
115
                spec      => $spec,
116
                validator => $validator
116
                validator => $validator
117
            }
117
            }
118
        );
118
        )  unless C4::Context->needs_install; # load only if Koha is installed
119
119
120
        $self->plugin(
120
        $self->plugin(
121
            OpenAPI => {
121
            OpenAPI => {
122
- 

Return to bug 25131