KEMP#38002 Bij nieuwe reservering expire beter controleren
svn path=/Website/branches/v2016.2/; revision=31040
This commit is contained in:
@@ -159,8 +159,8 @@ if (restype == "R")
|
|||||||
if (rsv_ruimte_key == -1 && // (update controle komt later wel)
|
if (rsv_ruimte_key == -1 && // (update controle komt later wel)
|
||||||
date_from < res.discipline_expire(disc_key) && !adhoc)
|
date_from < res.discipline_expire(disc_key) && !adhoc)
|
||||||
{
|
{
|
||||||
if (urole == "fe" && this_res && this_res.canChangeFEExtended)
|
if (urole == "fe") // nieuwe is nooit canChangeFEExtended
|
||||||
abort_with_warning(L("lcl_res_lastmin"));
|
abort_with_warning(L("lcl_res_lastmin"));
|
||||||
else
|
else
|
||||||
if (urole != "bo")
|
if (urole != "bo")
|
||||||
warning = L("lcl_res_obj_lastminute");
|
warning = L("lcl_res_obj_lastminute");
|
||||||
@@ -473,7 +473,7 @@ else // update
|
|||||||
user.auth_required_or_abort(this_res.canChange || this_res.canChangeFEExtended);
|
user.auth_required_or_abort(this_res.canChange || this_res.canChangeFEExtended);
|
||||||
|
|
||||||
// Bij wijzigen tijdstip ruimte (naar voren) schuiven voorzieningen mogelijk mee.
|
// Bij wijzigen tijdstip ruimte (naar voren) schuiven voorzieningen mogelijk mee.
|
||||||
if (date_from < this_res.earliest_expire_change && !this_res.canChangeFEExtended) // canChangeFEExtended kon toch niet bewerken
|
if (date_from < this_res.earliest_expire_change && this_res.canChange) // canChangeFEExtended kon toch niet bewerken
|
||||||
{
|
{
|
||||||
if (this_res.canChangeFEOnly)
|
if (this_res.canChangeFEOnly)
|
||||||
abort_with_warning(L("lcl_res_lastmin")); // te laat
|
abort_with_warning(L("lcl_res_lastmin")); // te laat
|
||||||
|
|||||||
Reference in New Issue
Block a user