LP#1468422 Auth efficiency improvements
authorBill Erickson <berickxx@gmail.com>
Wed, 27 Jan 2016 17:11:33 +0000 (12:11 -0500)
committerBill Erickson <berickxx@gmail.com>
Wed, 27 Jan 2016 17:16:39 +0000 (12:16 -0500)
commit933d63209d7f33c81737f1ea59a1d4b101d2c7a1
treea2692a316c50eac5b584b2c78d1c35aef578cd98
parent286d0ccf022ebc8a21a81e0640513c0cf1bca14d
LP#1468422 Auth efficiency improvements

1. Adds an oils_utils function for retrieving the ID of the root org
unit.

2. Avoid multiple cstore/db lookups for the root org unit by caching the
ID at the process level.

3. Move permission checks from open-ils.storage to open-ils.cstore.

Signed-off-by: Bill Erickson <berickxx@gmail.com>
Open-ILS/include/openils/oils_utils.h
Open-ILS/src/c-apps/oils_auth.c
Open-ILS/src/c-apps/oils_utils.c