NYBU#36591 NYBU - Betere rolcontrole opvragen reservering via zoek en b

svn path=/Website/trunk/; revision=40681
This commit is contained in:
Alex Tiehuis
2019-01-28 08:12:20 +00:00
parent 1fbf15aaed
commit 8e5f5b0fe0
2 changed files with 10 additions and 1 deletions

View File

@@ -113,7 +113,7 @@ else
tsql += " AND res_rsv_ruimte_volgnr = " + volgnr;
toRs = Oracle.Execute(tsql);
if (toRs(0).value != null) {
url = (mobiel > 0 ? "../pda/" : "../res/res_") + "reservering.asp?urole="+urole+"&rsv_ruimte_key="+toRs(0).value;
url = (mobiel > 0 ? "../pda/reservering.asp?urole="+urole+"&rsv_ruimte_key="+toRs(0).value : "../res/res_reservering.asp?urole=xx&rsv_ruimte_key="+toRs(0).value);
}
break;
case 'A':

View File

@@ -38,6 +38,15 @@ else
var eindlevel = getQParamInt("alg_endlevel", 2); // default = location, or else the alg_endlevel
var orgurole = urole;
var verynew = getQParamInt("verynew", 0) == 1 && getQParamInt("nowold", 0) != 1;
if (urole == "xx") // In case you enter via search
{
var authparamsRESFOF = user.checkAutorisation("WEB_RESFOF");
if (authparamsRESFOF)
urole = "fo";
else
urole = "fe";
}
var transitParam = "";
if (verynew)