Fix retrieval of a user's repositories.

The repositories which a user is member of a team
with permissions were not selected.
Merge pull request #1027 from ontohub/fix_accessible_repositories

Fix retrieval of a user's repositories.