From 493302324c114e2a84ce6f11b14c3247334a2d7a 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 Signed-off-by: Dan Wells --- 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.43.2