Bugzilla – Attachment 55105 Details for
Bug 14868
REST API: Swagger2-driven permission checking
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 14868: (QA followup) POD fixes
Bug-14868-QA-followup-POD-fixes.patch (text/plain), 1.33 KB, created by
Benjamin Rokseth
on 2016-09-01 21:02:05 UTC
(
hide
)
Description:
Bug 14868: (QA followup) POD fixes
Filename:
MIME Type:
Creator:
Benjamin Rokseth
Created:
2016-09-01 21:02:05 UTC
Size:
1.33 KB
patch
obsolete
>From 54918ccffb055dfb50d58a2c5331332ebf5cbc48 Mon Sep 17 00:00:00 2001 >From: Tomas Cohen Arazi <tomascohen@theke.io> >Date: Wed, 31 Aug 2016 20:21:12 -0300 >Subject: [PATCH] Bug 14868: (QA followup) POD fixes > >To make the QA scripts happy, the POD needed a fix, and also >keys applied to a hashref needs to be avoided. > >Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io> >Signed-off-by: Benjamin Rokseth <benjamin.rokseth@kul.oslo.kommune.no> >--- > Koha/REST/V1.pm | 16 +++++++++++++++- > 1 file changed, 15 insertions(+), 1 deletion(-) > >diff --git a/Koha/REST/V1.pm b/Koha/REST/V1.pm >index 4509819..591c584 100644 >--- a/Koha/REST/V1.pm >+++ b/Koha/REST/V1.pm >@@ -26,6 +26,20 @@ use Koha::Holds; > use Koha::OldIssues; > use Koha::Patrons; > >+=head1 NAME >+ >+Koha::REST::V1 - Main v.1 REST api class >+ >+=head1 API >+ >+=head2 Class Methods >+ >+=head3 startup >+ >+Overloaded Mojolicious->startup method. It is called at application startup. >+ >+=cut >+ > sub startup { > my $self = shift; > >@@ -167,7 +181,7 @@ sub check_object_ownership { > reserve_id => \&_object_ownership_by_reserve_id, > }; > >- foreach my $param (keys $parameters) { >+ foreach my $param ( keys %{ $parameters } ) { > my $check_ownership = $parameters->{$param}; > if ($c->stash($param)) { > return &$check_ownership($c, $user, $c->stash($param)); >-- >2.1.4
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 14868
:
42761
|
52577
|
52578
|
52579
|
52592
|
52593
|
52594
|
52602
|
52603
|
52604
|
52963
|
52964
|
52965
|
52966
|
52967
|
52981
|
52992
|
52993
|
52994
|
52995
|
52996
|
54457
|
54458
|
54459
|
54631
|
54632
|
54633
|
54765
|
54766
|
54767
|
54770
|
54771
|
54894
|
54895
|
54896
|
54897
|
55084
|
55085
|
55086
|
55087
|
55088
|
55089
|
55099
|
55100
|
55101
|
55102
|
55103
|
55104
| 55105