From: Mike Rylander Date: Tue, 8 Jul 2014 15:11:54 +0000 (-0400) Subject: LP#1339118: Ignore permission checks for "jump" context X-Git-Url: https://old-git.evergreen-ils.org/?a=commitdiff_plain;h=2c939801a36148fd8f1f4a4766bf26e6110f553b;p=working%2FEvergreen.git 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 --- diff --git a/Open-ILS/src/c-apps/oils_sql.c b/Open-ILS/src/c-apps/oils_sql.c index dac5d8c9d7..885a562e1c 100644 --- a/Open-ILS/src/c-apps/oils_sql.c +++ b/Open-ILS/src/c-apps/oils_sql.c @@ -1764,8 +1764,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 );