Browse Source

Bug 23666: (QA follow-up) Fix wrong required permissions

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
21.05.x
Tomas Cohen Arazi 1 year ago
committed by Jonathan Druart
parent
commit
12b6d1f792
  1. 2
      api/v1/swagger/paths/patrons_extended_attributes.json
  2. 6
      t/db_dependent/api/v1/patrons_extended_attributes.t

2
api/v1/swagger/paths/patrons_extended_attributes.json

@ -79,7 +79,7 @@
},
"x-koha-authorization": {
"permissions": {
"catalogue": "1"
"borrowers": "edit_borrowers"
}
}
},

6
t/db_dependent/api/v1/patrons_extended_attributes.t

@ -40,7 +40,7 @@ subtest 'list_patron_attributes() tests' => sub {
my $patron = $builder->build_object({
class => 'Koha::Patrons',
value => { flags => 2 ** 2 } # 'catalogue' flag == 2
value => { flags => 2 ** 4 } # 'borrowers' flag == 4
});
my $password = 'thePassword123';
$patron->set_password({ password => $password, skip_validation => 1 });
@ -208,8 +208,8 @@ subtest 'overwrite() tests' => sub {
my $patron = $builder->build_object({
class => 'Koha::Patrons',
value => { flags => 2 ** 4 + 2 ** 2 } # 'borrowers' flag == 4
}); # 'catalogue' flag == 2
value => { flags => 2 ** 4 } # 'borrowers' flag == 4
});
my $password = 'thePassword123';
$patron->set_password({ password => $password, skip_validation => 1 });
my $userid = $patron->userid;

Loading…
Cancel
Save