Security: Offline punches are marked where the network rule applies
Description
An offline punch of the web or the app skipped the IP allow-list, because the
address of its upload says nothing about where it occurred. Any client with
a token could use that to punch from outside the office network. An offline
punch is still never refused for its network, but where the company has an
IP allow-list it is now marked "network not checked" (network in
the API). A punch that arrives later than the offline delay of such a company
is no longer refused: it becomes a correction request of its day, so that it
is still tracked. A required location still applies to offline punches.
Impact
Companies without an IP allow-list see no change. The punch gets the new
field network, and create can answer 202 with the
correction request. The app keeps sending offline and occurred as before.
Run the database migrations: time_ gets the column network_.