FSN#37266 ins.func_enabled_deel iets minder streng maken
svn path=/Website/trunk/; revision=30115
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user