clean up Story#can_be_seen_by_user? (#921)

This commit is contained in:
Ron Wolf 2020-08-25 21:35:03 -04:00 committed by GitHub
parent c39561f2f3
commit 4361a7ace5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 5 deletions

View File

@ -371,11 +371,7 @@ class Story < ApplicationRecord
end
def can_be_seen_by_user?(user)
if is_gone? && !(user && (user.is_moderator? || user.id == self.user_id))
return false
end
true
!is_gone? || (user && (user.is_moderator? || user.id == self.user_id))
end
def can_have_images?