Minor bugfix

This commit is contained in:
Noah Petherbridge 2023-08-15 09:53:59 -07:00
parent 4c398c9b13
commit 868aef6fb0

View File

@ -98,7 +98,7 @@ func UserPhotos() http.HandlerFunc {
if isOwnPhotos || isGrantee || currentUser.HasAdminScope(config.ScopePhotoModerator) { if isOwnPhotos || isGrantee || currentUser.HasAdminScope(config.ScopePhotoModerator) {
visibility = append(visibility, models.PhotoPrivate) 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) visibility = append(visibility, models.PhotoFriends)
} }