|
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 |
- |
|
|