View | Details | Raw Unified | Return to bug 18403
Collapse All | Expand All

(-)a/Koha/REST/V1.pm (-1 / +1 lines)
Lines 157-163 achieved by defining the operation as follows: Link Here
157
        "x-koha-authorization": {
157
        "x-koha-authorization": {
158
            "allow-owner": true,
158
            "allow-owner": true,
159
            "permissions": {
159
            "permissions": {
160
                "borrowers": "1"
160
                "borrowers": "edit_borrowers"
161
            }
161
            }
162
        }
162
        }
163
    }
163
    }
(-)a/Koha/REST/V1/Patron.pm (-1 / +2 lines)
Lines 26-32 sub list { Link Here
26
26
27
    my $user = $c->stash('koha.user');
27
    my $user = $c->stash('koha.user');
28
28
29
    my $patrons = Koha::Patrons->search;
29
    # FIXME The limited does not work here, the userenv is not set
30
    my $patrons = Koha::Patrons->search_limited;
30
31
31
    $c->$cb($patrons, 200);
32
    $c->$cb($patrons, 200);
32
}
33
}
(-)a/api/v1/swagger/paths/holds.json (-1 / +1 lines)
Lines 129-135 Link Here
129
        "allow-owner": true,
129
        "allow-owner": true,
130
        "allow-guarantor": true,
130
        "allow-guarantor": true,
131
        "permissions": {
131
        "permissions": {
132
          "borrowers": "1"
132
          "borrowers": "edit_borrowers"
133
        }
133
        }
134
      }
134
      }
135
    },
135
    },
(-)a/api/v1/swagger/paths/patrons.json (-3 / +2 lines)
Lines 25-31 Link Here
25
      },
25
      },
26
      "x-koha-authorization": {
26
      "x-koha-authorization": {
27
        "permissions": {
27
        "permissions": {
28
          "borrowers": "1"
28
          "borrowers": "edit_borrowers"
29
        }
29
        }
30
      }
30
      }
31
    }
31
    }
Lines 65-71 Link Here
65
        "allow-owner": true,
65
        "allow-owner": true,
66
        "allow-guarantor": true,
66
        "allow-guarantor": true,
67
        "permissions": {
67
        "permissions": {
68
          "borrowers": "1"
68
          "borrowers": "edit_borrowers"
69
        }
69
        }
70
      }
70
      }
71
    }
71
    }
72
- 

Return to bug 18403