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

(-)a/api/v1/swagger/paths/patrons_extended_attributes.json (-1 / +1 lines)
Lines 79-85 Link Here
79
      },
79
      },
80
      "x-koha-authorization": {
80
      "x-koha-authorization": {
81
        "permissions": {
81
        "permissions": {
82
          "catalogue": "1"
82
          "borrowers": "edit_borrowers"
83
        }
83
        }
84
      }
84
      }
85
    },
85
    },
(-)a/t/db_dependent/api/v1/patrons_extended_attributes.t (-4 / +3 lines)
Lines 40-46 subtest 'list_patron_attributes() tests' => sub { Link Here
40
40
41
    my $patron = $builder->build_object({
41
    my $patron = $builder->build_object({
42
        class => 'Koha::Patrons',
42
        class => 'Koha::Patrons',
43
        value => { flags => 2 ** 2 } # 'catalogue' flag == 2
43
        value => { flags => 2 ** 4 } # 'borrowers' flag == 4
44
    });
44
    });
45
    my $password = 'thePassword123';
45
    my $password = 'thePassword123';
46
    $patron->set_password({ password => $password, skip_validation => 1 });
46
    $patron->set_password({ password => $password, skip_validation => 1 });
Lines 208-215 subtest 'overwrite() tests' => sub { Link Here
208
208
209
    my $patron = $builder->build_object({
209
    my $patron = $builder->build_object({
210
        class => 'Koha::Patrons',
210
        class => 'Koha::Patrons',
211
        value => { flags => 2 ** 4 + 2 ** 2 } # 'borrowers' flag == 4
211
        value => { flags => 2 ** 4 } # 'borrowers' flag == 4
212
    });                                       # 'catalogue' flag == 2
212
    });
213
    my $password = 'thePassword123';
213
    my $password = 'thePassword123';
214
    $patron->set_password({ password => $password, skip_validation => 1 });
214
    $patron->set_password({ password => $password, skip_validation => 1 });
215
    my $userid = $patron->userid;
215
    my $userid = $patron->userid;
216
- 

Return to bug 23666