enterprise: Special case handling of internal repo in FetchRepoPerms
Created by: indradhanush
Should fix #25904.
Stacked on top of #30097.
Post merge follow up: Verify if user centric sync can overwrite repo centric sync with respect to internal repos.