Fix photo permalink display bug
This commit is contained in:
parent
e0fb117927
commit
0fe538fd87
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user