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

(-)a/t/db_dependent/api/v1/patrons.t (-2 / +14 lines)
Lines 715-723 subtest 'update() tests' => sub { Link Here
715
        my $authorized_patron = $builder->build_object(
715
        my $authorized_patron = $builder->build_object(
716
            {
716
            {
717
                class => 'Koha::Patrons',
717
                class => 'Koha::Patrons',
718
                value => { flags => 1 }
718
                value => { flags => 2 ** 2 }     # catalog only, no additional permissions
719
            }
719
            }
720
        );
720
        );
721
722
        # Ensure our librarian can see users from all branches (once list_borrowers is added)
723
        $builder->build(
724
            {
725
                source => 'UserPermission',
726
                value  => {
727
                    borrowernumber => $authorized_patron->borrowernumber,
728
                    module_bit     => 4,
729
                    code           => 'edit_borrowers',
730
                },
731
             }
732
        );
733
721
        my $password = 'thePassword123';
734
        my $password = 'thePassword123';
722
        $authorized_patron->set_password(
735
        $authorized_patron->set_password(
723
            { password => $password, skip_validation => 1 } );
736
            { password => $password, skip_validation => 1 } );
724
- 

Return to bug 36988