User tests: Successful: Unsuccessful:
Pull Request for Issue # .
This change was created with the help of AI (Claude Code).
When a CSV row has no created_by, weblinks:sync-csv --action=import sets it to 990 (and modified_by to the same value). That id is a leftover from a development site; on other sites it does not exist or, worse, belongs to an arbitrary user, who then becomes the owner of the imported weblinks (relevant for Edit Own).
The fallback is now 0 (no user), the column default.
Import a CSV with an empty created_by column and check Created by of the imported weblinks.
No user is set as creator.
The weblinks are assigned to user id 990.
None