mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-22 20:13:50 +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);
|
||||
}
|
||||
|
||||
if (!Services.Authorizer.Authorize(Permissions.EditContent, hits.Single(), T("Cannot preview content")))
|
||||
return new HttpUnauthorizedResult();
|
||||
|
||||
dynamic model = Services.ContentManager.BuildDisplay(hits.Single());
|
||||
return new ShapeResult(this, model);
|
||||
}
|
||||
|
Reference in New Issue
Block a user