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

(-)a/C4/Installer/PerlDependencies.pm (-1 / +1 lines)
Lines 785-791 our $PERL_DEPS = { Link Here
785
    'Mojolicious::Plugin::OpenAPI' => {
785
    'Mojolicious::Plugin::OpenAPI' => {
786
        'usage'    => 'REST API',
786
        'usage'    => 'REST API',
787
        'required' => '1',
787
        'required' => '1',
788
        'min_ver'  => '1.13',
788
        'min_ver'  => '1.17',
789
    },
789
    },
790
    'JSON::Validator' => {
790
    'JSON::Validator' => {
791
        'usage'    => 'REST API',
791
        'usage'    => 'REST API',
(-)a/Koha/REST/V1/Auth.pm (-2 / +1 lines)
Lines 108-114 if authorization is required and user has required permissions to access. Link Here
108
sub authenticate_api_request {
108
sub authenticate_api_request {
109
    my ( $c ) = @_;
109
    my ( $c ) = @_;
110
110
111
    my $spec = $c->match->endpoint->pattern->defaults->{'openapi.op_spec'};
111
    my $spec = $c->openapi->spec;
112
    my $authorization = $spec->{'x-koha-authorization'};
112
    my $authorization = $spec->{'x-koha-authorization'};
113
    my $cookie = $c->cookie('CGISESSID');
113
    my $cookie = $c->cookie('CGISESSID');
114
    my ($session, $user);
114
    my ($session, $user);
115
- 

Return to bug 18890