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

(-)a/api/v1/swagger/paths/holds.json (-1 / +1 lines)
Lines 672-678 Link Here
672
      },
672
      },
673
      "x-koha-authorization": {
673
      "x-koha-authorization": {
674
        "permissions": {
674
        "permissions": {
675
          "reserveforothers": "1"
675
          "reserveforothers": "place_holds"
676
        }
676
        }
677
      }
677
      }
678
    }
678
    }
(-)a/t/db_dependent/api/v1/holds.t (-2 / +11 lines)
Lines 686-696 subtest 'pickup_locations() tests' => sub { Link Here
686
    my $patron = $builder->build_object(
686
    my $patron = $builder->build_object(
687
        {
687
        {
688
            class => 'Koha::Patrons',
688
            class => 'Koha::Patrons',
689
            value => { userid => 'tomasito', flags => 1 }
689
            value => { userid => 'tomasito', flags => 0 }
690
        }
690
        }
691
    );
691
    );
692
    $patron->set_password( { password => $password, skip_validation => 1 } );
692
    $patron->set_password( { password => $password, skip_validation => 1 } );
693
    my $userid = $patron->userid;
693
    my $userid = $patron->userid;
694
    $builder->build(
695
        {
696
            source => 'UserPermission',
697
            value  => {
698
                borrowernumber => $patron->borrowernumber,
699
                module_bit     => 6,
700
                code           => 'place_holds',
701
            },
702
        }
703
    );
694
704
695
    my $item_class = Test::MockModule->new('Koha::Item');
705
    my $item_class = Test::MockModule->new('Koha::Item');
696
    $item_class->mock(
706
    $item_class->mock(
697
- 

Return to bug 27117