Bugfix
This commit is contained in:
parent
f7b7eabf01
commit
b9f2bafd7a
|
@ -55,6 +55,12 @@ func View() http.HandlerFunc {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Is this a circle photo?
|
||||||
|
if photo.Visibility == models.PhotoInnerCircle && !currentUser.IsInnerCircle() {
|
||||||
|
templates.NotFoundPage(w, r)
|
||||||
|
return
|
||||||
|
}
|
||||||
|
|
||||||
// Is this user private and we're not friends?
|
// Is this user private and we're not friends?
|
||||||
var (
|
var (
|
||||||
areFriends = models.AreFriends(user.ID, currentUser.ID)
|
areFriends = models.AreFriends(user.ID, currentUser.ID)
|
||||||
|
|
Loading…
Reference in New Issue
Block a user