FCLT#82594 Blokbehandelaren mogen ook notities gebruiken als zijnde behandelaar

svn path=/Website/branches/v2024.2/; revision=65223
This commit is contained in:
2024-06-19 14:05:48 +00:00
parent 3d3b807c19
commit c558cbab41
3 changed files with 5 additions and 3 deletions

View File

@@ -5220,7 +5220,8 @@ mld = {
mresult.canRead("WEB_MLDBOF") ||
mresult.canRead("WEB_MLDBO3") ||
(mresult.canFEread && fenotes > 0) ||
mresult.canRead("WEB_MLDBAC"));
mresult.canRead("WEB_MLDBAC")) ||
userIsBlokbehandelaar;
// In de newstyle mode moet ik in ieder geval ook rechten hebben om de melding te kunnen zien.
mresult.canReadNotes = mresult.canWriteNotes || mresult.canReadAny;
mresult.haveOnlyFErights = (!mresult.canRead("WEB_MLDFOF") && !mresult.canRead("WEB_MLDBOF") && mresult.canFEread);

View File

@@ -199,7 +199,8 @@ if (mld_key > 0)
mod_tabel: "mld_melding",
note_tabel: "mld_melding_note",
tmp_note: tmp_note,
showNote: ((!mfe.haveOnlyFErights && mfe.canReadAny) || (mfe.haveOnlyFErights && !mfe.parentOfOwnRead && mld_info.fenotes > 0)),
showNote: ((!mfe.haveOnlyFErights && mfe.canReadAny) || (mfe.haveOnlyFErights && !mfe.parentOfOwnRead && mld_info.fenotes > 0) || mfe.canChangeKenmerkBlok),
/* showNote: mfe.canReadNotes, // Waarom werkt dit niet gewoon .. ? -> Nou, minstens omdat die mld_info.fenotes nog niet incorporeert, maar dat zou wel mogen */
writeNote: mfe.canWriteNotes,
afgehandeld: afgehandeld,
note_flag: mld_note_flag,

View File

@@ -50,7 +50,7 @@ notes =
params.haschild = mld_info.haschild;
params.publiek = mld_info.publiek;
params.eigenMelding = user_key == mld_info.melder_key;
params.myRole = "myRole" in params ? params.myRole : (this_mld.haveOnlyFErights ? 1 : (this_mld.canFOread || this_mld.canBOread ? 2 : 3));
params.myRole = "myRole" in params ? params.myRole : (this_mld.haveOnlyFErights ? 1 : (this_mld.canFOread || this_mld.canBOread || this_mld.canChangeKenmerkBlok ? 2 : 3));
params.fobo_prskey = (("mld_ins_discipline_key" in mld_info && mld_info.mld_ins_discipline_key > 0) ? mld_info.behandel2_key : mld_info.behandel_key);
}