mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-15 19:54:57 +08:00
Fixing Rules copypasta T-strings in Workflows AdminController, found by Benedek
--HG-- branch : 1.x
This commit is contained in:
@@ -179,7 +179,7 @@ namespace Orchard.Workflows.Controllers {
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public ActionResult Delete(int id) {
|
public ActionResult Delete(int id) {
|
||||||
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage rules")))
|
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage workflows")))
|
||||||
return new HttpUnauthorizedResult();
|
return new HttpUnauthorizedResult();
|
||||||
|
|
||||||
var workflowDefinition = _workflowDefinitionRecords.Get(id);
|
var workflowDefinition = _workflowDefinitionRecords.Get(id);
|
||||||
@@ -194,7 +194,7 @@ namespace Orchard.Workflows.Controllers {
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public ActionResult DeleteWorkflow(int id, string returnUrl) {
|
public ActionResult DeleteWorkflow(int id, string returnUrl) {
|
||||||
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage rules")))
|
if (!Services.Authorizer.Authorize(StandardPermissions.SiteOwner, T("Not authorized to manage workflows")))
|
||||||
return new HttpUnauthorizedResult();
|
return new HttpUnauthorizedResult();
|
||||||
|
|
||||||
var workflow = _workflowRecords.Get(id);
|
var workflow = _workflowRecords.Get(id);
|
||||||
|
Reference in New Issue
Block a user