From 99b6ae6b472fd94b390ed154213b1070a9b3e479 Mon Sep 17 00:00:00 2001 From: Sebastien Ros Date: Thu, 15 Sep 2011 09:40:43 -0700 Subject: [PATCH] Fixing permission issue --HG-- branch : 1.x --- src/Orchard.Web/Core/Routable/Controllers/ItemController.cs | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Orchard.Web/Core/Routable/Controllers/ItemController.cs b/src/Orchard.Web/Core/Routable/Controllers/ItemController.cs index bba99e3bd..e32890b4c 100644 --- a/src/Orchard.Web/Core/Routable/Controllers/ItemController.cs +++ b/src/Orchard.Web/Core/Routable/Controllers/ItemController.cs @@ -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); }