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();

View File

@@ -69,7 +69,7 @@
</td>
<td>
@Html.ActionLink(T("Edit").ToString(), "Edit", new { entry.User.Id }) |
@Html.ActionLink(T("Delete").ToString(), "Delete", new { entry.User.Id }) |
@Html.ActionLink(T("Delete").ToString(), "Delete", new { entry.User.Id}, new { itemprop = "RemoveUrl UnsafeUrl" }) |
@if (entry.User.RegistrationStatus == UserStatus.Pending) {
@Html.ActionLink(T("Approve").ToString(), "Approve", new { entry.User.Id })
} else {