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

(-)a/Koha/REST/Plugin/PluginRoutes.pm (-5 / +6 lines)
Lines 45-51 sub register { Link Here
45
45
46
    my @plugins;
46
    my @plugins;
47
47
48
    if ( C4::Context->config("enable_plugins") )
48
    if ( C4::Context->config("enable_plugins") and
49
         ! C4::Context->needs_install ) # Koha is installed
49
    {
50
    {
50
        # plugin needs to define a namespace
51
        # plugin needs to define a namespace
51
        @plugins = Koha::Plugins->new()->GetPlugins(
52
        @plugins = Koha::Plugins->new()->GetPlugins(
Lines 53-62 sub register { Link Here
53
                method => 'api_namespace',
54
                method => 'api_namespace',
54
            }
55
            }
55
        );
56
        );
56
    }
57
57
58
    foreach my $plugin ( @plugins ) {
58
        foreach my $plugin ( @plugins ) {
59
        $spec = inject_routes( $spec, $plugin, $validator );
59
            $spec = inject_routes( $spec, $plugin, $validator );
60
        }
61
60
    }
62
    }
61
63
62
    return $spec;
64
    return $spec;
63
- 

Return to bug 25131