API: import: fix get_api_token signature

This commit is contained in:
Derf Null 2023-03-26 15:55:33 +02:00
parent 3a3a7bfeda
commit 3acee2b285
No known key found for this signature in database
GPG key ID: 19E6E524EBB177BA

View file

@ -412,7 +412,7 @@ sub import_v1 {
return; return;
} }
my $token = $self->users->get_api_token($uid); my $token = $self->users->get_api_token( uid => $uid );
if ( not $token->{'import'} or $api_token ne $token->{'import'} ) { if ( not $token->{'import'} or $api_token ne $token->{'import'} ) {
$self->render( $self->render(
json => { json => {