Lines 27-34
die("Koha plugins are disabled!") unless C4::Context->config("enable_plugins");
Link Here
|
27 |
|
27 |
|
28 |
my $input = CGI->new; |
28 |
my $input = CGI->new; |
29 |
|
29 |
|
30 |
my ( $auth_status ) = |
30 |
my ( $auth_status ) = check_cookie_auth( $input->cookie('CGISESSID'), { plugins => 'manage' } ); |
31 |
check_cookie_auth( $input->cookie('CGISESSID'), { plugins => 'manage' } ); |
31 |
if( $auth_status ne 'ok' ) { |
|
|
32 |
print CGI::header( '-status' => '401' ); |
33 |
exit 0; |
34 |
} |
32 |
|
35 |
|
33 |
my $class = $input->param('class'); |
36 |
my $class = $input->param('class'); |
34 |
my $method = $input->param('method'); |
37 |
my $method = $input->param('method'); |
35 |
- |
|
|