SGGR#40733 Objecten bij verkeerde (contact)persoon getoond

svn path=/Website/branches/v2017.1/; revision=34081
This commit is contained in:
Jos Groot Lipman
2017-05-31 11:40:37 +00:00
parent e67119486f
commit c250fb8465

View File

@@ -1790,11 +1790,11 @@ ins = {checkAutLevel:
// Now apply user filtering on this query: // Now apply user filtering on this query:
if (persoon_key) 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) 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) else if (dep_key)
{ {