]> git.evergreen-ils.org Git - working/Evergreen.git/commit - Open-ILS/src/c-apps/oils_utils.c
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>
Fri, 26 Feb 2016 15:07:42 +0000 (10:07 -0500)
commitc427559c208c173700d622610fe440225550eb54
tree5f6d109bfaa02f69b9f9d89a5c80e02c6b41c954
parent493302324c114e2a84ce6f11b14c3247334a2d7a
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>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
Open-ILS/include/openils/oils_utils.h
Open-ILS/src/c-apps/oils_auth.c
Open-ILS/src/c-apps/oils_utils.c