From 286d0ccf022ebc8a21a81e0640513c0cf1bca14d Mon Sep 17 00:00:00 2001 From: Bill Erickson Date: Wed, 27 Jan 2016 11:46:17 -0500 Subject: [PATCH] LP#1468422 Login permission checks are global For backwards compat, perform all login permission checks using the root org unit as the context org unit. Signed-off-by: Bill Erickson --- Open-ILS/src/c-apps/oils_auth_internal.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Open-ILS/src/c-apps/oils_auth_internal.c b/Open-ILS/src/c-apps/oils_auth_internal.c index a6dba099cd..c64a6c0763 100644 --- a/Open-ILS/src/c-apps/oils_auth_internal.c +++ b/Open-ILS/src/c-apps/oils_auth_internal.c @@ -232,6 +232,10 @@ static oilsEvent* oilsAuthVerifyWorkstation( 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)) { -- 2.11.0