Showing 1 changed file with 2 insertions and 2 deletions
src/backend/git.rs
@@ -454,10 +454,10 @@ impl RepositoryBackend for GitBackend { | ||
454 | 454 | |
455 | 455 | while let Some(Ok(Either::Right(repository))) = repositories.next().await { |
456 | 456 | // Check if the requesting user is allowed to see the repository |
457 | if matches!( | |
457 | if !(matches!( | |
458 | 458 | repository.visibility, |
459 | 459 | RepositoryVisibility::Unlisted | RepositoryVisibility::Private |
460 | ) && Some(&repository.owner_user.clone()) != requester | |
460 | ) && Some(&repository.owner_user.clone()) != requester) | |
461 | 461 | { |
462 | 462 | result.push(RepositorySummary { |
463 | 463 | repository: Repository { |