Bugzilla – Attachment 167271 Details for
Bug 36988
PUT for patrons requires full borrowers permission, but should only require 'edit_borrowers'
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 36988: Update unit tests
Bug-36988-Update-unit-tests.patch (text/plain), 1.39 KB, created by
Kyle M Hall (khall)
on 2024-05-30 10:56:01 UTC
(
hide
)
Description:
Bug 36988: Update unit tests
Filename:
MIME Type:
Creator:
Kyle M Hall (khall)
Created:
2024-05-30 10:56:01 UTC
Size:
1.39 KB
patch
obsolete
>From 81eaeda0668928e828c7404e41272a18f0572db4 Mon Sep 17 00:00:00 2001 >From: Kyle M Hall <kyle@bywatersolutions.com> >Date: Thu, 30 May 2024 06:55:32 -0400 >Subject: [PATCH] Bug 36988: Update unit tests > >--- > t/db_dependent/api/v1/patrons.t | 15 ++++++++++++++- > 1 file changed, 14 insertions(+), 1 deletion(-) > >diff --git a/t/db_dependent/api/v1/patrons.t b/t/db_dependent/api/v1/patrons.t >index a3247d7de93..17536174818 100755 >--- a/t/db_dependent/api/v1/patrons.t >+++ b/t/db_dependent/api/v1/patrons.t >@@ -715,9 +715,22 @@ subtest 'update() tests' => sub { > my $authorized_patron = $builder->build_object( > { > class => 'Koha::Patrons', >- value => { flags => 1 } >+ value => { flags => 2 ** 2 } # catalog only, no additional permissions > } > ); >+ >+ # Ensure our librarian can see users from all branches (once list_borrowers is added) >+ $builder->build( >+ { >+ source => 'UserPermission', >+ value => { >+ borrowernumber => $authorized_patron->borrowernumber, >+ module_bit => 4, >+ code => 'edit_borrowers', >+ }, >+ } >+ ); >+ > my $password = 'thePassword123'; > $authorized_patron->set_password( > { password => $password, skip_validation => 1 } ); >-- >2.30.2
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 36988
:
167270
|
167271
|
167272
|
167273