JavaScript is disabled, refresh for a better experience. ambee/giterated

ambee/giterated

Git repository hosting, collaboration, and discovery for the Fediverse.

Reverse match statement to be correct

Type: Fix

emilia - ⁨2⁩ years ago

parent: tbd commit: ⁨e7053d7

Showing ⁨⁨1⁩ changed file⁩ with ⁨⁨2⁩ insertions⁩ and ⁨⁨2⁩ deletions⁩

src/backend/git.rs

View file
@@ -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 {