#66843DBAL: Permission error when saving a new record
Description
When creating a new record and saving it, without closing (thus going back to edit mode), the backend stops with:
Sorry, you didn't have proper permissions to perform this change.
This is caused by #66680 because the last generated ID is not stored.