Skip to content

Commit

Permalink
resolve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
parth-elastic committed Nov 30, 2023
1 parent d6cd16a commit 971c7e2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion connectors/sources/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -1751,7 +1751,8 @@ async def get_docs(self, filtering=None):
continue
access_control = []
if self._dls_enabled():
if repo.get("visibility").lower() == "public":
is_public_repo = repo.get("visibility").lower() == "public"
if is_public_repo:
async for user in self.github_client._fetch_all_members():
access_control.append(
_prefix_user_id(user_id=user.get("id"))
Expand Down

0 comments on commit 971c7e2

Please sign in to comment.