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:
parent
ed9a12771b
commit
f331a2427c
@ -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">
|
||||
|
Loading…
Reference in New Issue
Block a user