evazion
2022-10-31 22:50:37 -05:00
parent b41b67af6c
commit ad998a8127
3 changed files with 17 additions and 1 deletions

View File

@@ -5,6 +5,10 @@ class MediaAssetPolicy < ApplicationPolicy
true
end
def image?
can_see_image?
end
def can_see_image?
record.post.blank? || record.post.visible?(user)
end