From 4866bac3d9410799ffcc8180ccfd5e7ca3224fe4 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 16:29:48 -0400 Subject: [PATCH] edit and delete buttons --- Project-Unite/Views/Forum/ViewTopic.cshtml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Project-Unite/Views/Forum/ViewTopic.cshtml b/Project-Unite/Views/Forum/ViewTopic.cshtml index 61ef682..13a24f8 100644 --- a/Project-Unite/Views/Forum/ViewTopic.cshtml +++ b/Project-Unite/Views/Forum/ViewTopic.cshtml @@ -92,6 +92,17 @@ } + + @if (Request.IsAuthenticated) + { + if(User.Identity.IsModerator() || post.AuthorId == User.Identity.GetUserId()) + { + + } + }