FCLT#56742 Actieve behandeling blokje wordt ook getoond als je een melding met urole = fe opent, maar wel FO, BO of MI rechten hebt

svn path=/Website/trunk/; revision=41252
This commit is contained in:
2019-03-01 08:36:07 +00:00
parent 5206fead00
commit 7ced40a04c

View File

@@ -55,7 +55,8 @@ var stdm_info = mld.mld_stdmeldinginfo(mld_melding.stdm);
var verynew = getQParamInt("verynew", 0) == 1 && (mld_melding.mld_status == 2 || mld_melding.mld_status == 0)&& !mld_melding.parent_key;
var this_mld = mld.func_enabled_melding(mld_key, {verynew: verynew}); // Wat heb ik zoal aan rechten op deze specifieke melding
var hasFOBOread = this_mld.canFOread || this_mld.canBOread; // JGL: Volgens mij identiek aan this_mld.haveFOBOrights ?
var hasFOBOread = this_mld.canFOread || this_mld.canBOread;
var hasFOBOMIread = this_mld.canFOread || this_mld.canBOread || this_mld.canMIread;
user.auth_required_or_abort(this_mld.canReadAny);
@@ -190,7 +191,7 @@ var fwdInfo = mld.getFwdType(mld_key, this_mld, mld_melding);
buttons.push({title: L("lcl_reject"), icon: "fa-ban", action:"mld_reject()", autoshow: true, tooltip: L("lcl_reject_hint") });
if ((fwdInfo.fwdType & 1) && (this_mld.canForward || this_mld.canFixMelding)) // bo2bo
buttons.push({title: fwdInfo.fwdLabel, icon: (fwdInfo.fwdType == 1 ? "fa-retweet" : "fa-external-link"),
buttons.push({title: fwdInfo.fwdLabel, icon: (fwdInfo.fwdType == 1 ? "fa-retweet" : "fa-external-link"),
action:"mld_forward('" + this_mld.canChangeUrole + "', 1)",
tooltip: fwdInfo.fwdHint});
@@ -572,7 +573,7 @@ function parentButton()
}
BLOCK_END();
if (!frontend && mld_melding.mld_ins_discipline_key > 0) // Overbodige informatie voor FE
if (hasFOBOMIread && mld_melding.mld_ins_discipline_key > 0) // Overbodige informatie voor FE
{
BLOCK_START("mldProcessing", L("lcl_mld_processing_details"));
if (mld_melding.mld_ins_discipline_key > 0)