Fixes #6651,bz1094986 - Disable Sync without repo url

Added code not allow syncing on repositories without a URL.
If you have better names for these methods kindly let me know . I just need 2 there to show 2 different messages "Cant sync because you are not authorized" vs "Cant sync because you have not given me urls"..