FSN#53649 RES Performance door geen onnodige prs_v_afdeling_boom in de query als er toch geen autorisatie op zit
svn path=/Website/branches/v2018.1/; revision=38577
This commit is contained in:
@@ -136,7 +136,10 @@ function model_reservations(rsv_key, params)
|
||||
query.tables.push("alg_v_ruimte_gegevens_all rg");
|
||||
query.tables.push("alg_district di");
|
||||
query.tables.push("prs_perslid p");
|
||||
query.tables.push("prs_v_afdeling_boom boom");
|
||||
|
||||
var add_prs_restrict = prshasrestrict(autfunction);
|
||||
if (add_prs_restrict)
|
||||
query.tables.push("prs_v_afdeling_boom boom");
|
||||
|
||||
query.wheres.push("res_rsv_ruimte.res_ruimte_opstel_key = res_ruimte_opstelling.res_ruimte_opstel_key(+)");
|
||||
query.wheres.push("rr.res_ruimte_key(+) = ra.res_ruimte_key");
|
||||
@@ -144,7 +147,8 @@ function model_reservations(rsv_key, params)
|
||||
query.wheres.push("rg.alg_ruimte_key = COALESCE(res_rsv_ruimte.alg_ruimte_key, ra.alg_ruimte_key)");
|
||||
query.wheres.push("rg.alg_district_key = di.alg_district_key");
|
||||
query.wheres.push("res_rsv_ruimte.res_rsv_ruimte_contact_key = p.prs_perslid_key");
|
||||
query.wheres.push("boom.prs_afdeling_key = p.prs_afdeling_key");
|
||||
if (add_prs_restrict)
|
||||
query.wheres.push("boom.prs_afdeling_key = p.prs_afdeling_key");
|
||||
|
||||
var wheres = api2.sqlfilter(params, this);
|
||||
query.wheres = query.wheres.concat(wheres);
|
||||
|
||||
Reference in New Issue
Block a user