[Koha-bugs] [Bug 20407] Hide some fields from unauthoriezd users
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Wed Mar 14 17:31:32 CET 2018
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=20407
--- Comment #1 from Alex Arnaud <alex.arnaud at biblibre.com> ---
Created attachment 72891
-->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=72891&action=edit
Bug 20407 - REST API: Ability to hide fields from unauthorized users
Test plan:
- apply this patch,
- edit api/v1/swagger/definitions/city.json,
- remove the keys "country" and "postal_code" from required,
- add a key "x-public": false for country and postal_code
"postal_code": {
"description": "city postal code",
"type": ["string", "null"],
"x-public": false
},
"country": {
"description": "city country",
"type": ["string", "null"],
"x-public": false
}
- logout from Koha and go to api/v1/cities,
- you should not see country and postal_code,
- login to Koha and refresh api/v1/cities,
- you should see country and postal_code
--
You are receiving this mail because:
You are watching all bug changes.
You are the assignee for the bug.
More information about the Koha-bugs
mailing list