DisableGitHooks and DisableImportLocal are only used when editing a user, so only set them in `editUserCommon`