fixes #6423 - wrong permission checked for delete

This commit is contained in:
Matthew Harris
2016-02-19 00:27:53 +00:00
parent 290f8e4594
commit fe5c8ba233

View File

@@ -68,7 +68,7 @@ namespace Orchard.Taxonomies.Controllers {
[HttpPost]
public ActionResult Delete(int id) {
if (!Services.Authorizer.Authorize(Permissions.CreateTaxonomy, T("Couldn't delete taxonomy")))
if (!Services.Authorizer.Authorize(Permissions.ManageTaxonomies, T("Couldn't delete taxonomy")))
return new HttpUnauthorizedResult();
var taxonomy = _taxonomyService.GetTaxonomy(id);