mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-01-23 01:32:16 +00:00
ACL ERRORS 😃
This commit is contained in:
parent
76df9153cb
commit
04fdad73bd
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue