Minor bugfix
This commit is contained in:
parent
666d3105b7
commit
4c398c9b13
|
@ -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 models.AreFriends(user.ID, currentUser.ID) {
|
if isOwnPhotos || models.AreFriends(user.ID, currentUser.ID) {
|
||||||
visibility = append(visibility, models.PhotoFriends)
|
visibility = append(visibility, models.PhotoFriends)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user