mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-01-19 17:51:45 +08:00
Fixing permission issue
--HG-- branch : 1.x
This commit is contained in:
@@ -52,9 +52,6 @@ namespace Orchard.Core.Routable.Controllers {
|
|||||||
return HttpNotFound(T("Ambiguous content").Text);
|
return HttpNotFound(T("Ambiguous content").Text);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!Services.Authorizer.Authorize(Permissions.EditContent, hits.Single(), T("Cannot preview content")))
|
|
||||||
return new HttpUnauthorizedResult();
|
|
||||||
|
|
||||||
dynamic model = Services.ContentManager.BuildDisplay(hits.Single());
|
dynamic model = Services.ContentManager.BuildDisplay(hits.Single());
|
||||||
return new ShapeResult(this, model);
|
return new ShapeResult(this, model);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user