Bugzilla – Attachment 92918 Details for
Bug 23607
Make /patrons/:patron_id/account privileged user only
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 23607: Make /patrons/:patron_id/account staff only
Bug-23607-Make-patronspatronidaccount-staff-only.patch (text/plain), 1.86 KB, created by
Josef Moravec
on 2019-09-17 19:09:20 UTC
(
hide
)
Description:
Bug 23607: Make /patrons/:patron_id/account staff only
Filename:
MIME Type:
Creator:
Josef Moravec
Created:
2019-09-17 19:09:20 UTC
Size:
1.86 KB
patch
obsolete
>From 54ac2878a609223bd86a969742127878318eb67f Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Fri, 13 Sep 2019 11:26:03 -0300 >Subject: [PATCH] Bug 23607: Make /patrons/:patron_id/account staff only > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> > >Signed-off-by: Josef Moravec <josef.moravec@gmail.com> >--- > api/v1/swagger/paths/patrons_account.json | 2 -- > t/db_dependent/api/v1/patrons_accounts.t | 4 ++-- > 2 files changed, 2 insertions(+), 4 deletions(-) > >diff --git a/api/v1/swagger/paths/patrons_account.json b/api/v1/swagger/paths/patrons_account.json >index 8ad88f0896..428999fe00 100644 >--- a/api/v1/swagger/paths/patrons_account.json >+++ b/api/v1/swagger/paths/patrons_account.json >@@ -53,8 +53,6 @@ > } > }, > "x-koha-authorization": { >- "allow-owner": true, >- "allow-guarantor": true, > "permissions": { > "borrowers": "edit_borrowers", > "updatecharges": "remaining_permissions" >diff --git a/t/db_dependent/api/v1/patrons_accounts.t b/t/db_dependent/api/v1/patrons_accounts.t >index 1a21a49eb8..e4a8f4d09c 100644 >--- a/t/db_dependent/api/v1/patrons_accounts.t >+++ b/t/db_dependent/api/v1/patrons_accounts.t >@@ -44,7 +44,7 @@ subtest 'get_balance() tests' => sub { > > $schema->storage->txn_begin; > >- my ( $patron, $session_id ) = create_user_and_session({ authorized => 0 }); >+ my ( $patron, $session_id ) = create_user_and_session({ authorized => 1 }); > my $library = $builder->build_object({ class => 'Koha::Libraries' }); > my $patron_id = $patron->id; > my $account = $patron->account; >@@ -249,7 +249,7 @@ subtest 'add_credit() tests' => sub { > sub create_user_and_session { > > my $args = shift; >- my $flags = ( $args->{authorized} ) ? 2**10 : 0; >+ my $flags = ( $args->{authorized} ) ? 1 : 0; > > my $patron = $builder->build_object( > { >-- >2.11.0
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 23607
:
92802
|
92918
|
93184