VOLK#57540 Bugfix; readofe undefined, nu -> juist juist gedefinieerd

svn path=/Website/branches/v2019.1/; revision=42221
This commit is contained in:
2019-04-23 15:16:23 +00:00
parent cab7146b46
commit 23fbf90f85
2 changed files with 4 additions and 1 deletions

View File

@@ -48,6 +48,8 @@ function make_cat(discipline_key, rsv_ruimte_key, existing_only, res_artikel_key
//user.auth_required_or_abort(this_res.canChange);
var backo = this_res.canWrite("WEB_RESBOF");
var fronto = this_res.canWrite("WEB_RESFOF");
var frontend = !fronto && !backo;
var readonlyFE = (rsv_ruimte_key != -1 && frontend && !this_res.canChange && this_res.canChangeFEExtended);
if (!backo && !fronto && res_van < res.discipline_expire(discipline_key))
{ %>
@@ -285,6 +287,7 @@ function make_cat(discipline_key, rsv_ruimte_key, existing_only, res_artikel_key
artikel_key: art_key,
rsv_ruimte_key: rsv_ruimte_key,
reado: false,
readofe: readonlyFE,
flexcolumns: S("res_flexcolumns"),
requiredbyfield: "inpb_c_" + art_str
});

View File

@@ -49,7 +49,7 @@ function generateFlexKenmerkCodeArt(params)
if (my_resrechten.canWrite("WEB_RESFOF") || my_resrechten.canWrite("WEB_RESBOF"))
return false; // die mogen altijd
return readofe; // als ik via de FE-uitzondering binnen ben wordt <100 readonly
return params.readofe; // als ik via de FE-uitzondering binnen ben wordt <100 readonly
}
else if (volgnummer >= 100 && volgnummer <= 800) // FE && FO && BO
{