AAFM#31226 Edit-mode bij vervolgmeldingen

svn path=/Website/trunk/; revision=28108
This commit is contained in:
Erik Groener
2016-02-10 12:35:34 +00:00
parent 401032cb14
commit 17f52bf9f5

View File

@@ -2593,6 +2593,12 @@ mld = {setmeldingstatus:
knownread: params.knownread
}
);
var mresult_no_disc = user.func_enabled2("MLD",
{ alg_key: moRs("mld_alg_onroerendgoed_keys").Value, // TODO: Wat als geen INS_SRTDISCIRPLINE_ALG?
prs_key: moRs("prs_perslid_key").Value,
knownread: params.knownread
}
);
mresult.canFEread = mresult.canRead("WEB_MLDUSE") && user.isCollega(moRs("prs_perslid_key").Value);
@@ -2730,7 +2736,7 @@ mld = {setmeldingstatus:
case 1: // Afgewezen
mresult.canChange = (mresult.canWrite("WEB_MLDFOF") && S("mld_rejected_is_open") == 1);
mresult.canChangeUrole = 'fo';
mresult.canContinue = mresult.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation"); //mldfof_write;
mresult.canContinue = (mresult.canWrite("WEB_MLDFOF") || mresult.canWrite("WBE_MLDBOF")) && mresult_no_disc.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation"); //mldfof_write;
mresult.canVakgChange = mresult.canWrite("WEB_MLDFOF");
mresult.canStdmChange = !is_wf_root;
mresult.canKostChange = (mresult.canWrite("WEB_MLDBOF") || mresult.canWrite("WEB_MLDBO3") || mresult.canFEwrite);
@@ -2815,7 +2821,7 @@ mld = {setmeldingstatus:
mresult.canForwardKeten = (!is_wf_root && S("mld_forward_if_active") == 0 && mresult.canForward); // is het echt vanwege keten?
mresult.canClose = (mresult.canWrite("WEB_MLDBOF") || mresult.canWrite("WEB_MLDBO2")) &&
!is_wf_root && (!is_planned_action || (is_planned_action && opdr_action_aantal == 0)); // Als de laatste geplande actie is geweest mag de melding afgemeld worden.
mresult.canContinue = mresult.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation"); //mldfof_write;
mresult.canContinue = (mresult.canWrite("WEB_MLDFOF") || mresult.canWrite("WBE_MLDBOF")) && mresult_no_disc.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation"); //mldfof_write;
mresult.canFlexChange = (mresult.canWrite("WEB_MLDBOF"));
// FOF kan alleen omschrijving aanpassen
mresult.canOmsChange = mresult.canWrite("WEB_MLDFOF");
@@ -2829,13 +2835,13 @@ mld = {setmeldingstatus:
mresult.canSLAChange = mresult.canAfrond;
mresult.canFixMelding = mresult.canFixSLA;
mresult.canChange = mresult.canAfrond;
mresult.canContinue = mresult.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation");
mresult.canContinue = (mresult.canWrite("WEB_MLDFOF") || mresult.canWrite("WBE_MLDBOF")) && mresult_no_disc.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation");
var authFaq = (S("faq_enabled")==1) && user.checkAutorisation("WEB_FAQFOF", true);
mresult.canAdd2Faq = (authFaq && authFaq.PRSwritelevel < 9 && !is_planned_action); // Voordragen voor kennisbank
mresult.canAddOpdr = mresult.canWrite("WEB_ORDBOF") && !mld_afgerond;
break;
case 6: // Admin voltooid
mresult.canContinue = mresult.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation");
mresult.canContinue = (mresult.canWrite("WEB_MLDFOF") || mresult.canWrite("WBE_MLDBOF")) && mresult_no_disc.canWrite("WEB_MLDFOF") && !is_planned_action && !S("mld_disable_continuation");
mresult.canFixSLA = false;
break;
}