mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-02-02 13:07:34 +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 @@ 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);
|
||||||
|
|
Loading…
Add table
Reference in a new issue