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 @@ public ActionResult Releases()
public ActionResult AddRelease()
{
if (!ACL.Granted(User.Identity.Name, "CanReleaseBuilds"))
if (!ACL.Granted(User.Identity.Name, "CanReleaseBuild"))
return new HttpStatusCodeResult(403);
ViewBag.Developer = true;
@ -41,7 +41,7 @@ public ActionResult AddRelease()
[ValidateAntiForgeryToken]
public ActionResult AddRelease(PostDownloadViewModel model)
{
if (!ACL.Granted(User.Identity.Name, "CanReleaseBuilds"))
if (!ACL.Granted(User.Identity.Name, "CanReleaseBuild"))
return new HttpStatusCodeResult(403);
if (!ModelState.IsValid)
return View(model);