Changing how user removal works.

--HG--
branch : 1.x
This commit is contained in:
Nathan Heskew
2011-04-08 15:01:33 -07:00
parent e81f1ed1ba
commit a4248217cd
2 changed files with 2 additions and 1 deletions

View File

@@ -264,6 +264,7 @@ namespace Orchard.Users.Controllers {
return RedirectToAction("Index");
}
[HttpPost]
public ActionResult Delete(int id) {
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage users")))
return new HttpUnauthorizedResult();