FSN#37266 ins.func_enabled_deel iets minder streng maken

svn path=/Website/trunk/; revision=30115
This commit is contained in:
Jos Groot Lipman
2016-07-25 11:13:26 +00:00
parent abb603c528
commit e10b8b3133
2 changed files with 7 additions and 4 deletions

View File

@@ -527,10 +527,11 @@ ins = {checkAutLevel:
var iresult = ins.func_enabled_scope(ioRs("ins_discipline_key").Value,
ioRs("ins_alg_ruimte_type").Value,
ioRs("ins_alg_ruimte_key").Value);
if (params && !params.isOptional)
user.auth_required_or_abort(iresult);
else
if (!iresult) return null;
if (!iresult)
return { canReadAny: false }; // Aanroeper moet hier (of andere canFunctie) op controleren
// Vanuit PDA wordt dan eventueel met melding (of reservering) op dit object
// Daarom niet al te hard er uit klappen hier.
iresult.canReadAny = true;
if (params && params.srtcont_key > 0)
{

View File

@@ -26,6 +26,8 @@ var urole = getQParamSafe("urole");
var ins_key = getQParamInt("ins_key");
var this_ins = ins.func_enabled_deel(ins_key);
user.auth_required_or_abort(this_ins.canReadAny);
if (this_ins.isSleCil)
var autfunction = "WEB_SLEBOF";
else