diff --git a/resources/views/themes/base/gallery/index.blade.php b/resources/views/themes/base/gallery/index.blade.php index ea7dbd9..f0cd704 100644 --- a/resources/views/themes/base/gallery/index.blade.php +++ b/resources/views/themes/base/gallery/index.blade.php @@ -29,7 +29,7 @@ @if (UserConfig::get('social_user_profiles')) - @can('view', $album->user) + @if (\App\User::currentOrAnonymous()->can('view', $album->user)) {{ $album->user->publicDisplayName() }} @else {{ $album->user->publicDisplayName() }} diff --git a/resources/views/themes/base/partials/gallery_child_album.blade.php b/resources/views/themes/base/partials/gallery_child_album.blade.php index 9cbea8a..7427149 100644 --- a/resources/views/themes/base/partials/gallery_child_album.blade.php +++ b/resources/views/themes/base/partials/gallery_child_album.blade.php @@ -22,7 +22,7 @@ @endif @if (UserConfig::get('social_user_profiles')) - @can('view', $childAlbum->user) + @if (\App\User::currentOrAnonymous()->can('view', $childAlbum->user)) @else