File tree Expand file tree Collapse file tree 3 files changed +4
-0
lines changed
Dnn.AdminExperience/EditBar/Dnn.EditBar.UI/Items Expand file tree Collapse file tree 3 files changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public class CompleteWorkflowMenu : WorkflowBaseMenuItem
3434
3535 /// <inheritdoc/>
3636 public override bool Visible ( ) => base . Visible ( )
37+ && ! this . IsDirectPublishWorkflow
3738 && ( this . IsReviewOrOtherIntermediateStateWithPermissions == true
3839 || ( this . IsPriorState == true && this . IsDraftWithPermissions == true ) // for Save Draft workflow
3940 || ( this . IsLastState == true && this . HasUnpublishVersion && this . HasDraftPermission == true ) ) ; // for Direct Publish workflow
Original file line number Diff line number Diff line change @@ -34,6 +34,7 @@ public class DiscardWorkflowMenu : WorkflowBaseMenuItem
3434
3535 /// <inheritdoc/>
3636 public override bool Visible ( ) => base . Visible ( )
37+ && ! this . IsDirectPublishWorkflow
3738 && ( ( this . IsLastState == false && ( this . IsDraftWithPermissions == true || this . IsReviewOrOtherIntermediateStateWithPermissions == true ) )
3839 || ( this . IsLastState == true && this . HasUnpublishVersion && this . HasDraftPermission ) ) ; // for Direct Publish workflow
3940 }
Original file line number Diff line number Diff line change @@ -52,6 +52,8 @@ public abstract class WorkflowBaseMenuItem : BaseMenuItem
5252
5353 internal bool HasDraftPermission => PermissionProvider . Instance ( ) . CanAddContentToPage ( TabController . CurrentPage ) ;
5454
55+ internal bool IsDirectPublishWorkflow => this . Workflow ? . WorkflowKey == SystemWorkflowManager . DirectPublishWorkflowKey ;
56+
5557 private ContentItem ContentItem => Util . GetContentController ( ) . GetContentItem ( TabController . CurrentPage . ContentItemId ) ;
5658
5759 private bool IsVersioningEnabled => TabVersionSettings . Instance . IsVersioningEnabled ( PortalSettings . Current . PortalId , TabController . CurrentPage . TabID ) ;
You can’t perform that action at this time.
0 commit comments