mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-10-27 12:29:04 +08:00
fixes #6423 - wrong permission checked for delete
This commit is contained in:
@@ -68,7 +68,7 @@ namespace Orchard.Taxonomies.Controllers {
|
|||||||
|
|
||||||
[HttpPost]
|
[HttpPost]
|
||||||
public ActionResult Delete(int id) {
|
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();
|
return new HttpUnauthorizedResult();
|
||||||
|
|
||||||
var taxonomy = _taxonomyService.GetTaxonomy(id);
|
var taxonomy = _taxonomyService.GetTaxonomy(id);
|
||||||
|
|||||||
Reference in New Issue
Block a user