add dispute functionality for contract duty and implement collection dates

This commit is contained in:
Marshal
2026-07-26 17:58:37 +00:00
parent bfea9de660
commit 225d2c8229
5 changed files with 233 additions and 27 deletions

View File

@@ -563,6 +563,11 @@ export function canCreateSchedule(user: AuthUser | null | undefined): boolean {
return hasPermission(user, FREIGHT_PERMS.trainScheduling.create);
}
/** Dispatching a train and opening/closing its booking window are both updates. */
export function canUpdateSchedule(user: AuthUser | null | undefined): boolean {
return hasPermission(user, FREIGHT_PERMS.trainScheduling.update);
}
export function canViewFleet(user: AuthUser | null | undefined): boolean {
return hasPermission(user, FREIGHT_PERMS.fleet.view);
}