From c250fb8465c4847679d895794a73444e3dc15034 Mon Sep 17 00:00:00 2001 From: Jos Groot Lipman Date: Wed, 31 May 2017 11:40:37 +0000 Subject: [PATCH] SGGR#40733 Objecten bij verkeerde (contact)persoon getoond svn path=/Website/branches/v2017.1/; revision=34081 --- APPL/INS/ins.inc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/APPL/INS/ins.inc b/APPL/INS/ins.inc index 4e7fe51c84..50c18a9063 100644 --- a/APPL/INS/ins.inc +++ b/APPL/INS/ins.inc @@ -1790,11 +1790,11 @@ ins = {checkAutLevel: // Now apply user filtering on this query: if (persoon_key) { - sqlOwner = "SELECT * FROM (" + sqlOwner + ") x WHERE x.alg_ruimte_key = " + persoon_key; + sqlOwner = "SELECT * FROM (" + sqlOwner + ") x WHERE x.ins_alg_ruimte_type = 'P' AND x.alg_ruimte_key = " + persoon_key; } else if (cpersoon_key) { - sqlOwner = "SELECT * FROM (" + sqlOwner + ") x WHERE x.alg_ruimte_key = " + cpersoon_key; + sqlOwner = "SELECT * FROM (" + sqlOwner + ") x WHERE x.ins_alg_ruimte_type = 'C' AND x.alg_ruimte_key = " + cpersoon_key; } else if (dep_key) {