From 946ded4283a2b3e77ae1369447cfebab750e200a Mon Sep 17 00:00:00 2001 From: Mike Rylander Date: Tue, 8 Jul 2014 11:11:54 -0400 Subject: [PATCH] LP#1339118: Ignore permission checks for "jump" context We don't worry about checking permissions on foreign objects when we're simply using them to get a context OU for the local object permission testing. The "jump" field just gives us more layers of indirection, and shouldn't cause a perm check, just like normal foreign context OUs. Signed-off-by: Mike Rylander Signed-off-by: Bill Erickson Signed-off-by: Ben Shum --- Open-ILS/src/c-apps/oils_sql.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Open-ILS/src/c-apps/oils_sql.c b/Open-ILS/src/c-apps/oils_sql.c index 6d3d25cc9f..77cb12c44e 100644 --- a/Open-ILS/src/c-apps/oils_sql.c +++ b/Open-ILS/src/c-apps/oils_sql.c @@ -1772,8 +1772,10 @@ static int verifyObjectPCRUD ( osrfMethodContext* ctx, osrfHash *class, const js _tmp_params = single_hash( foreign_pkey, foreign_pkey_value ); // Do the lookup + osrfHashSet((osrfHash*) ctx->session->userData, "1", "inside_verify"); _list = doFieldmapperSearch( ctx, foreign_class_meta, _tmp_params, NULL, &err ); + osrfHashSet((osrfHash*) ctx->session->userData, "0", "inside_verify"); // Get the resulting row jsonObjectFree( _fparam ); -- 2.43.2