diff options
| author | Michael <[email protected]> | 2017-05-09 16:00:37 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-09 16:00:37 -0400 |
| commit | c84f6193547370d6786609404e6dbc51f181d7b0 (patch) | |
| tree | b3b9cad1beadddbfe2de9f736424638275691c91 /Project-Unite/Controllers/BlogController.cs | |
| parent | cb653f021d2567f69a63414963b0f5ef739cd641 (diff) | |
| download | project-unite-c84f6193547370d6786609404e6dbc51f181d7b0.tar.gz project-unite-c84f6193547370d6786609404e6dbc51f181d7b0.tar.bz2 project-unite-c84f6193547370d6786609404e6dbc51f181d7b0.zip | |
Redo the permission system.
Diffstat (limited to 'Project-Unite/Controllers/BlogController.cs')
| -rw-r--r-- | Project-Unite/Controllers/BlogController.cs | 4 |
1 files changed, 1 insertions, 3 deletions
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); } |
