public void Process(FilterItemPipelineArgs args) { if (ItemFilterDisabler.CurrentValue == ItemFilterDisabler.FilterState.Disabled) { args.AbortPipeline(); } }
public void Process(FilterItemPipelineArgs args) { var site = Context.Site; if (site == null) return; using (new SecurityDisabler()) { if (!WorkflowStateFilterDisabler.IsActive && !site.EnableWorkflow && Config.FilterByWorkflowEnabled) { var filtered = ProcessWorkflowStateFiltering(args.FilteredItem); args.FilteredItem = filtered; } } }
public void Process(FilterItemPipelineArgs args) { if(ItemFilterDisabler.CurrentValue == ItemFilterDisabler.FilterState.Disabled) args.AbortPipeline(); }