From 868aef6fb0a41ffc703df8a0b0a0ccef3984e732 Mon Sep 17 00:00:00 2001 From: Noah Petherbridge Date: Tue, 15 Aug 2023 09:53:59 -0700 Subject: [PATCH] Minor bugfix --- pkg/controller/photo/user_gallery.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/controller/photo/user_gallery.go b/pkg/controller/photo/user_gallery.go index b9e3ef5..72c2e92 100644 --- a/pkg/controller/photo/user_gallery.go +++ b/pkg/controller/photo/user_gallery.go @@ -98,7 +98,7 @@ func UserPhotos() http.HandlerFunc { if isOwnPhotos || isGrantee || currentUser.HasAdminScope(config.ScopePhotoModerator) { visibility = append(visibility, models.PhotoPrivate) } - if isOwnPhotos || models.AreFriends(user.ID, currentUser.ID) { + if isOwnPhotos || models.AreFriends(user.ID, currentUser.ID) || currentUser.HasAdminScope(config.ScopePhotoModerator) { visibility = append(visibility, models.PhotoFriends) }