AKZA#57860 Achteraf wijzigen van ingevoerde ritten lukt niet

svn path=/Website/branches/v2019.1/; revision=42607
This commit is contained in:
Alex Tiehuis
2019-05-21 09:31:30 +00:00
parent db1a8293eb
commit ead16b2f0c

View File

@@ -546,7 +546,8 @@ else // update
// Hardness controle schrijfrechten
user.auth_required_or_abort(this_res.canChange || this_res.canChangeFEExtended);
if (restype == "R") {
if (restype == "R" && urole == "fe")
{
var discipline_expire = res.discipline_expire(disc_key, (S("res_247organisation")==1?2:0));
if (date_from < discipline_expire.addFloatHours(0)) // addFloatHours rond af naar voorgaande kwartier
abort_with_warning(L("lcl_res_lastmin")); // te laat