Fixing Rules copypasta T-strings in Workflows AdminController, found by Benedek

--HG--
branch : 1.x
This commit is contained in:
Zoltán Lehóczky
2013-07-23 15:29:14 +02:00
parent 78ff9b245a
commit e56382e427

View File

@@ -179,7 +179,7 @@ namespace Orchard.Workflows.Controllers {
[HttpPost]
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();
var workflowDefinition = _workflowDefinitionRecords.Get(id);
@@ -194,7 +194,7 @@ namespace Orchard.Workflows.Controllers {
[HttpPost]
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();
var workflow = _workflowRecords.Get(id);