Fixes #134 - user profile link is made available if not logged in and the user's profile is public
This commit is contained in:
parent
da99b0b05a
commit
feb38c47b0
@ -29,7 +29,7 @@
|
|||||||
|
|
||||||
@if (UserConfig::get('social_user_profiles'))
|
@if (UserConfig::get('social_user_profiles'))
|
||||||
<i class="fa fa-fw fa-user ml-2"></i>
|
<i class="fa fa-fw fa-user ml-2"></i>
|
||||||
@can('view', $album->user)
|
@if (\App\User::currentOrAnonymous()->can('view', $album->user))
|
||||||
<a href="{{ $album->user->profileUrl() }}">{{ $album->user->publicDisplayName() }}</a>
|
<a href="{{ $album->user->profileUrl() }}">{{ $album->user->publicDisplayName() }}</a>
|
||||||
@else
|
@else
|
||||||
{{ $album->user->publicDisplayName() }}
|
{{ $album->user->publicDisplayName() }}
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
@endif
|
@endif
|
||||||
|
|
||||||
@if (UserConfig::get('social_user_profiles'))
|
@if (UserConfig::get('social_user_profiles'))
|
||||||
@can('view', $childAlbum->user)
|
@if (\App\User::currentOrAnonymous()->can('view', $childAlbum->user))
|
||||||
<a href="{{ $childAlbum->user->profileUrl() }}" data-toggle="tooltip" data-placement="top" title="{{ $childAlbum->user->publicDisplayName() }}"><i class="fa fa-fw fa-user ml-2"></i></a>
|
<a href="{{ $childAlbum->user->profileUrl() }}" data-toggle="tooltip" data-placement="top" title="{{ $childAlbum->user->publicDisplayName() }}"><i class="fa fa-fw fa-user ml-2"></i></a>
|
||||||
@else
|
@else
|
||||||
<i class="fa fa-fw fa-user ml-2" data-toggle="tooltip" data-placement="top" title="{{ $childAlbum->user->publicDisplayName() }}"></i>
|
<i class="fa fa-fw fa-user ml-2" data-toggle="tooltip" data-placement="top" title="{{ $childAlbum->user->publicDisplayName() }}"></i>
|
||||||
|
Loading…
Reference in New Issue
Block a user