diff --git a/src/Orchard.Web/Core/Contents/Views/Content.PublishButton.cshtml b/src/Orchard.Web/Core/Contents/Views/Content.PublishButton.cshtml index b8f48a08f..00aa39181 100644 --- a/src/Orchard.Web/Core/Contents/Views/Content.PublishButton.cshtml +++ b/src/Orchard.Web/Core/Contents/Views/Content.PublishButton.cshtml @@ -1,3 +1,9 @@ -
+@using Orchard.ContentManagement; +@using Orchard.Core.Contents; +@using Orchard.Utility.Extensions; + +@if (Authorizer.Authorize(Permissions.PublishContent, (IContent)Model.ContentItem)) { +
-
\ No newline at end of file +
+} \ No newline at end of file diff --git a/src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml b/src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml index b4494b845..e44349273 100644 --- a/src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml +++ b/src/Orchard.Web/Core/Contents/Views/Parts.Contents.Publish.SummaryAdmin.cshtml @@ -1,6 +1,7 @@ @using Orchard.ContentManagement; -@using Orchard.Core.Contents +@using Orchard.Core.Contents; @using Orchard.Utility.Extensions; + @{ Script.Require("ShapesBase"); ContentPart contentPart = Model.ContentPart; diff --git a/src/Orchard.Web/Modules/Orchard.PublishLater/Views/EditorTemplates/Parts/PublishLater.cshtml b/src/Orchard.Web/Modules/Orchard.PublishLater/Views/EditorTemplates/Parts/PublishLater.cshtml index 7a07fec8b..c094b0c16 100644 --- a/src/Orchard.Web/Modules/Orchard.PublishLater/Views/EditorTemplates/Parts/PublishLater.cshtml +++ b/src/Orchard.Web/Modules/Orchard.PublishLater/Views/EditorTemplates/Parts/PublishLater.cshtml @@ -1,7 +1,15 @@ @model Orchard.PublishLater.ViewModels.PublishLaterViewModel + +@using Orchard.ContentManagement; +@using Orchard.Core.Contents; +@using Orchard.Utility.Extensions; + @{ Style.Require("PublishLater_DatePicker"); } + +@if (Authorizer.Authorize(Permissions.PublishContent, Model.ContentItem)) { +
@T("Publish") @@ -10,7 +18,8 @@ @Html.EditorFor(m => m.ScheduledPublishTime)
-@using(Script.Foot()) { + +using (Script.Foot()) { @* generates the localization script *@ @Display(New.DatePickerLocalization()) @@ -41,4 +50,6 @@ }) //]]> +} + } \ No newline at end of file