From c84f6193547370d6786609404e6dbc51f181d7b0 Mon Sep 17 00:00:00 2001 From: Michael Date: Tue, 9 May 2017 16:00:37 -0400 Subject: Redo the permission system. --- Project-Unite/Controllers/BlogController.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'Project-Unite/Controllers/BlogController.cs') diff --git a/Project-Unite/Controllers/BlogController.cs b/Project-Unite/Controllers/BlogController.cs index bc01229..5d964e2 100644 --- a/Project-Unite/Controllers/BlogController.cs +++ b/Project-Unite/Controllers/BlogController.cs @@ -130,12 +130,10 @@ namespace Project_Unite.Controllers return View(blog); } + [RequiresDeveloper] [Authorize] public ActionResult PostBlog() { - if (!ACL.Granted(User.Identity.Name, "CanBlog")) - return new HttpStatusCodeResult(403); - var model = new PostBlogViewModel(); return View(model); } -- cgit v1.2.3