From 18114a978b7c037da5194c48f860435e261f9a0b Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 21 Jul 2026 22:29:13 +0200 Subject: PDFs currently should have no credits attached to them in display --- app/models/asset.rb | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/models/asset.rb') diff --git a/app/models/asset.rb b/app/models/asset.rb index 8aa5415d..9feefa9f 100644 --- a/app/models/asset.rb +++ b/app/models/asset.rb @@ -25,4 +25,8 @@ class Asset < ApplicationRecord def has_credit? creator.present? || source_url.present? || license_key.present? end + + def show_credit? + image? && has_credit? + end end -- cgit v1.3