From 84f1444f241f3c0defd029390dbdffae96b46542 Mon Sep 17 00:00:00 2001 From: Koen Reefman Date: Fri, 20 Oct 2017 13:56:44 +0000 Subject: [PATCH] SGGR#47247 Geen WEB_MLDMGT rechten meer nodig om bijlage te uploaden (achterhalen attributetype) svn path=/Website/branches/v2017.2/; revision=35777 --- APPL/API2/model_mld_kenmerk.inc | 2 +- APPL/API2/model_mld_srtkenmerk.inc | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/APPL/API2/model_mld_kenmerk.inc b/APPL/API2/model_mld_kenmerk.inc index 5aa3853991..f861f6cff9 100644 --- a/APPL/API2/model_mld_kenmerk.inc +++ b/APPL/API2/model_mld_kenmerk.inc @@ -161,7 +161,7 @@ function model_mld_kenmerk(niveau, params) this.getPropertyType = function (kenmerkdata) { - var typedata = api2.GET(new model_mld_srtkenmerk(), kenmerkdata.issuepropertytype.id); + var typedata = api2.GET(new model_mld_srtkenmerk({internal: params.internal}), kenmerkdata.issuepropertytype.id); return typedata; } diff --git a/APPL/API2/model_mld_srtkenmerk.inc b/APPL/API2/model_mld_srtkenmerk.inc index 21f85687c4..c150b27cf9 100644 --- a/APPL/API2/model_mld_srtkenmerk.inc +++ b/APPL/API2/model_mld_srtkenmerk.inc @@ -13,14 +13,15 @@ %> <% -function model_mld_srtkenmerk() +function model_mld_srtkenmerk(params) { + params = params || {}; this.records_name = "issuepropertytypes"; this.record_name = "issuepropertytype"; this.table = "mld_srtkenmerk"; this.primary = "mld_srtkenmerk_key"; this.soft_delete = "mld_srtkenmerk_verwijder"; - this.autfunction = "WEB_MLDMGT"; + this.autfunction = params.internal?false:"WEB_MLDMGT"; this.record_title = L("mld_srtkenmerk"); this.records_title = L("mld_srtkenmerk_m");