Skip to content

Commit 317f126

Browse files
committed
Minor fix (avoid 404 when clicking guest avatar)
1 parent 6703d06 commit 317f126

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/Presentation/SmartStore.Web/Extensions/MappingExtensions.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ public static CustomerAvatarModel ToAvatarModel(
8888
Id = customer.Id,
8989
Large = large,
9090
UserName = userName,
91-
AllowViewingProfiles = customerSettings.AllowViewingProfiles,
9291
AvatarPictureSize = mediaSettings.AvatarPictureSize
9392
};
9493

@@ -99,6 +98,8 @@ public static CustomerAvatarModel ToAvatarModel(
9998
}
10099
else
101100
{
101+
model.AllowViewingProfiles = customerSettings.AllowViewingProfiles;
102+
102103
if (customer.FirstName.HasValue())
103104
{
104105
model.AvatarLetter = customer.FirstName.First();

0 commit comments

Comments
 (0)