Fix photo permalink display bug

This commit is contained in:
Noah 2022-09-08 09:30:33 -07:00
parent e0fb117927
commit 0fe538fd87

View File

@ -68,7 +68,7 @@ func View() http.HandlerFunc {
// Is this a private photo and are we allowed to see?
isGranted := models.IsPrivateUnlocked(user.ID, currentUser.ID)
if !isGranted && !currentUser.IsAdmin {
if photo.Visibility == models.PhotoPrivate && !isGranted && !currentUser.IsAdmin {
templates.NotFoundPage(w, r)
return
}