1
0
mirror of https://git.teknik.io/Teknikode/Teknik.git synced 2023-08-02 14:16:22 +02:00

Fixed exception if viewing a vautl with no user associated while logged in.

This commit is contained in:
Uncled1023 2017-02-22 13:56:28 -08:00
parent ed9a12771b
commit f331a2427c

View File

@ -16,7 +16,7 @@
<h2><b>@((string.IsNullOrEmpty(Model.Title)) ? "Untitled" : Model.Title)</b> <small>Created on <time datetime="@Model.DateCreated.ToString("s")">@Model.DateCreated.ToString("dddd, MMMM d, yyyy") at @Model.DateCreated.ToString("h:mm:ss tt")</time></small></h2>
</div>
</div>
@if (User.Identity.IsAuthenticated && Model.User.Username == User.Identity.Name)
@if (User.Identity.IsAuthenticated && Model.User != null && Model.User.Username == User.Info.Username)
{
<div class="row">
<div class="col-sm-12">