generic thumbnail for password protected files

This commit is contained in:
2024-04-28 18:15:02 +10:00
parent 6bb45c38a9
commit 67df8f85ff

View File

@@ -147,7 +147,7 @@ class Media extends Model
*/
public function getThumbnailAttribute(): string
{
if($this->password !== null) {
if($this->password === null) {
if ($this->hasVariant('thumbnail')) {
$url = $this->url('thumbnail', true);
if ($url !== '') {