]> git.koha-community.org Git - koha.git/commit
Bug 20624: Make staff client respect RESTOAuth2ClientCredentials
authorTomas Cohen Arazi <tomascohen@theke.io>
Wed, 2 May 2018 18:55:31 +0000 (15:55 -0300)
committerJonathan Druart <jonathan.druart@bugs.koha-community.org>
Wed, 9 May 2018 15:56:02 +0000 (12:56 -0300)
commit5cf8bbfb7aea34b6367dfbbfb9d73f88851507fb
tree1f0c82f94b97cca26b0e1c9190400bc500c64180
parent997a5705504b63cbaf9ae41f0487f5c1654c686f
Bug 20624: Make staff client respect RESTOAuth2ClientCredentials

This patch makes the staff client UI respect the
RESTOAuth2ClientCredentials syspref.

To test:
- Make sure RESTOAuth2ClientCredentials is "Don't enable"
- Go to a patron's detail page
=> SUCCESS: The 'More' dropdown doesn't show the API keys management
link.
- Enable RESTOAuth2ClientCredentials
- Reload
=> SUCCESS: The 'More' dropdown shows the API keys management link
- Click on the API keys management link
=> SUCCESS: You can edit the api keys
- Disable the syspref
- Reload
=> SUCCESS: You are presented an error 400 page.
- Sign off :-D

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
koha-tmpl/intranet-tmpl/prog/en/includes/members-toolbar.inc
members/apikeys.pl