Fix photo permalink display bug

pull/12/head
Noah 2022-09-08 09:30:33 -07:00
parent e0fb117927
commit 0fe538fd87
1 changed files with 1 additions and 1 deletions

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
}