Bugzilla – Attachment 119391 Details for
Bug 23666
Add routes for extended patron attributes
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23666: (QA follow-up) Fix wrong required permissions
Bug-23666-QA-follow-up-Fix-wrong-required-permissi.patch (text/plain), 2.19 KB, created by
Kyle M Hall (khall)
on 2021-04-09 15:18:04 UTC
(
hide
)
Description:
Bug 23666: (QA follow-up) Fix wrong required permissions
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2021-04-09 15:18:04 UTC
Size:
2.19 KB
patch
obsolete
>From e32f5af0997461cee5cf62741f87fdade0a8b42d Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 19 Mar 2021 12:05:24 -0300 >Subject: [PATCH] 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> >--- > api/v1/swagger/paths/patrons_extended_attributes.json | 2 +- > t/db_dependent/api/v1/patrons_extended_attributes.t | 6 +++--- > 2 files changed, 4 insertions(+), 4 deletions(-) > >diff --git a/api/v1/swagger/paths/patrons_extended_attributes.json b/api/v1/swagger/paths/patrons_extended_attributes.json >index 048bae827b..c721f409c3 100644 >--- a/api/v1/swagger/paths/patrons_extended_attributes.json >+++ b/api/v1/swagger/paths/patrons_extended_attributes.json >@@ -79,7 +79,7 @@ > }, > "x-koha-authorization": { > "permissions": { >- "catalogue": "1" >+ "borrowers": "edit_borrowers" > } > } > }, >diff --git a/t/db_dependent/api/v1/patrons_extended_attributes.t b/t/db_dependent/api/v1/patrons_extended_attributes.t >index 3ee17affa8..da80c2e23e 100755 >--- a/t/db_dependent/api/v1/patrons_extended_attributes.t >+++ b/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; >-- >2.24.3 (Apple Git-128)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 23666
:
118508
|
118509
|
118510
|
118550
|
118699
|
118700
|
118701
|
118702
|
118818
|
118854
|
119042
|
119388
|
119389
|
119390
| 119391 |
119392
|
119393