From 45746d4c4a32f697435a7178ef4b83ca65ce4840 Mon Sep 17 00:00:00 2001 From: Michael Date: Wed, 17 May 2017 18:35:09 -0400 Subject: [PATCH] use new permission system for blog --- Project-Unite/Views/Blog/Index.cshtml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Project-Unite/Views/Blog/Index.cshtml b/Project-Unite/Views/Blog/Index.cshtml index 56af4ef..5e65f22 100644 --- a/Project-Unite/Views/Blog/Index.cshtml +++ b/Project-Unite/Views/Blog/Index.cshtml @@ -7,13 +7,15 @@

We ShiftOS devs have a lot going on. If you want to find out a bit more about what we do behind the scenes, this is the place for you. We'll post lots of things for you to read here.

-@if(ACL.Granted(User.Identity.Name, "CanBlog")) +@if (Request.IsAuthenticated) { - + if (User.Identity.IsDeveloper()) + { + + } } - @foreach(var blog in Model) {