Skip to content

Commit

Permalink
Fix the missing UI authorization check
Browse files Browse the repository at this point in the history
  • Loading branch information
hishamco committed Jun 7, 2017
1 parent 0a412f9 commit 8fb40ab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bloggy/Views/Blog/Archive.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
<ul>
@foreach (var post in group.Posts)
{
<li><a href="/@post.Slug">@post.Title</a> <span class="actions" style="float:right">[ <a asp-controller="Post" asp-action="Edit" asp-route-id="@post.Id">Edit</a> ]</span></li>
<li><a href="/@post.Slug">@post.Title</a> @if (User.Identity.IsAuthenticated){<span class="actions" style="float:right">[ <a asp-controller="Post" asp-action="Edit" asp-route-id="@post.Id">Edit</a> ]</span>}</li>
}
</ul>
</div>
Expand Down

0 comments on commit 8fb40ab

Please sign in to comment.