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