diff options
| author | Michael <[email protected]> | 2017-05-22 21:00:11 -0400 |
|---|---|---|
| committer | Michael <[email protected]> | 2017-05-22 21:00:11 -0400 |
| commit | 3c95bab2d55ec785f1cd50d7cff6967d97a08811 (patch) | |
| tree | fdcd06d9aeaec3cc8fe3f353dfee73fdb4011f37 /Project-Unite/Controllers/AdminController.cs | |
| parent | a615b533057b0a5ed9c64d6ae686a62293f812aa (diff) | |
| download | project-unite-3c95bab2d55ec785f1cd50d7cff6967d97a08811.tar.gz project-unite-3c95bab2d55ec785f1cd50d7cff6967d97a08811.tar.bz2 project-unite-3c95bab2d55ec785f1cd50d7cff6967d97a08811.zip | |
I think Ash is getting to me.
Diffstat (limited to 'Project-Unite/Controllers/AdminController.cs')
| -rw-r--r-- | Project-Unite/Controllers/AdminController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Project-Unite/Controllers/AdminController.cs b/Project-Unite/Controllers/AdminController.cs index cbef219..261c120 100644 --- a/Project-Unite/Controllers/AdminController.cs +++ b/Project-Unite/Controllers/AdminController.cs @@ -16,14 +16,14 @@ namespace Project_Unite.Controllers { //We have a custom ACL implementation so we do not need to use the ASP.NET role system to check if a user has an ACL rule. [Authorize] + [RequiresAdmin] public class AdminController : Controller { private ApplicationDbContext db = new ApplicationDbContext(); - [Authorize] - [RequiresAdmin] - public ActionResult Index() + public ActionResult Index(string id = "home") { + ViewBag.Page = id; return View(); } } |
