@@ -, +, @@ --- api/v1/swagger/paths/patrons_account.json | 2 -- t/db_dependent/api/v1/patrons_accounts.t | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) --- a/api/v1/swagger/paths/patrons_account.json +++ a/api/v1/swagger/paths/patrons_account.json @@ -53,8 +53,6 @@ } }, "x-koha-authorization": { - "allow-owner": true, - "allow-guarantor": true, "permissions": { "borrowers": "edit_borrowers", "updatecharges": "remaining_permissions" --- a/t/db_dependent/api/v1/patrons_accounts.t +++ a/t/db_dependent/api/v1/patrons_accounts.t @@ -44,7 +44,7 @@ subtest 'get_balance() tests' => sub { $schema->storage->txn_begin; - my ( $patron, $session_id ) = create_user_and_session({ authorized => 0 }); + my ( $patron, $session_id ) = create_user_and_session({ authorized => 1 }); my $library = $builder->build_object({ class => 'Koha::Libraries' }); my $patron_id = $patron->id; my $account = $patron->account; @@ -249,7 +249,7 @@ subtest 'add_credit() tests' => sub { sub create_user_and_session { my $args = shift; - my $flags = ( $args->{authorized} ) ? 2**10 : 0; + my $flags = ( $args->{authorized} ) ? 1 : 0; my $patron = $builder->build_object( { --