mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
a703c9c73c |
@@ -188,7 +188,9 @@ namespace Orchard.Users.Controllers {
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
public ActionResult SendChallengeEmail(int id) {
|
||||
[HttpPost]
|
||||
public ActionResult SendChallengeEmail(int id)
|
||||
{
|
||||
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage users")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
@@ -203,7 +205,9 @@ namespace Orchard.Users.Controllers {
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
public ActionResult Approve(int id) {
|
||||
[HttpPost]
|
||||
public ActionResult Approve(int id)
|
||||
{
|
||||
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage users")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
@@ -217,7 +221,9 @@ namespace Orchard.Users.Controllers {
|
||||
return RedirectToAction("Index");
|
||||
}
|
||||
|
||||
public ActionResult Moderate(int id) {
|
||||
[HttpPost]
|
||||
public ActionResult Moderate(int id)
|
||||
{
|
||||
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage users")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
|
||||
@@ -37,12 +37,12 @@
|
||||
@Html.ActionLink(T("Edit").ToString(), "Edit", new { row.UserPart.Id }) |
|
||||
@Html.ActionLink(T("Remove").ToString(), "Delete", new { row.UserPart.Id }) |
|
||||
@if(row.UserPart.RegistrationStatus == UserStatus.Pending) {
|
||||
@Html.ActionLink(T("Approve").ToString(), "Approve", new { row.UserPart.Id })
|
||||
@Html.ActionLink(T("Approve").ToString(), "Approve", new { row.UserPart.Id }, new { itemprop = "UnsafeUrl" })
|
||||
} else {
|
||||
@Html.ActionLink(T("Disable").ToString(), "Moderate", new { row.UserPart.Id })
|
||||
@Html.ActionLink(T("Disable").ToString(), "Moderate", new { row.UserPart.Id }, new { itemprop = "UnsafeUrl" })
|
||||
}
|
||||
@if ( row.UserPart.EmailStatus == UserStatus.Pending ) { <text>|</text>
|
||||
@Html.ActionLink(T("Send challenge E-mail").ToString(), "SendChallengeEmail", new { row.UserPart.Id })
|
||||
@Html.ActionLink(T("Send challenge E-mail").ToString(), "SendChallengeEmail", new { row.UserPart.Id }, new { itemprop = "UnsafeUrl" })
|
||||
}
|
||||
</td>
|
||||
</tr>
|
||||
|
||||
Reference in New Issue
Block a user