For backwards compat, perform all login permission checks using the root
org unit as the context org unit.
Signed-off-by: Bill Erickson <berickxx@gmail.com>
Signed-off-by: Dan Wells <dbw2@calvin.edu>
static oilsEvent* oilsAuthCheckLoginPerm(osrfMethodContext* ctx,
int user_id, int org_id, const char* type ) {
+ // For backwards compatibility, check all login permissions
+ // using the root org unit as the context org unit.
+ org_id = -1;
+
char* perms[1];
if (!strcasecmp(type, OILS_AUTH_OPAC)) {