ACL ERRORS 😃

This commit is contained in:
Michael 2017-04-05 20:45:53 -04:00
parent 76df9153cb
commit 04fdad73bd

View file

@ -27,7 +27,7 @@ namespace Project_Unite.Controllers
public ActionResult AddRelease() public ActionResult AddRelease()
{ {
if (!ACL.Granted(User.Identity.Name, "CanReleaseBuilds")) if (!ACL.Granted(User.Identity.Name, "CanReleaseBuild"))
return new HttpStatusCodeResult(403); return new HttpStatusCodeResult(403);
ViewBag.Developer = true; ViewBag.Developer = true;
@ -41,7 +41,7 @@ namespace Project_Unite.Controllers
[ValidateAntiForgeryToken] [ValidateAntiForgeryToken]
public ActionResult AddRelease(PostDownloadViewModel model) public ActionResult AddRelease(PostDownloadViewModel model)
{ {
if (!ACL.Granted(User.Identity.Name, "CanReleaseBuilds")) if (!ACL.Granted(User.Identity.Name, "CanReleaseBuild"))
return new HttpStatusCodeResult(403); return new HttpStatusCodeResult(403);
if (!ModelState.IsValid) if (!ModelState.IsValid)
return View(model); return View(model);