diff --git a/src/backend/git.rs b/src/backend/git.rs index e83bfd1..a3789da 100644 --- a/src/backend/git.rs +++ b/src/backend/git.rs @@ -454,10 +454,10 @@ impl RepositoryBackend for GitBackend { while let Some(Ok(Either::Right(repository))) = repositories.next().await { // Check if the requesting user is allowed to see the repository - if matches!( + if !(matches!( repository.visibility, RepositoryVisibility::Unlisted | RepositoryVisibility::Private - ) && Some(&repository.owner_user.clone()) != requester + ) && Some(&repository.owner_user.clone()) != requester) { result.push(RepositorySummary { repository: Repository {