Interface IPreviewAccessEvaluator
Determines whether the user that the current preview session belongs to may see the unpublished version of a document.
Namespace: Umbraco.Cms.Core.Preview
Assembly: Umbraco.Core.dll
Syntax
public interface IPreviewAccessEvaluator
Remarks
The published content cache consults this before handing out a draft, and serves the published version of any document that is refused.
Methods
View SourceCanPreviewDocument(IPublishedContent)
Determines whether the unpublished version of the given document may be shown in the current preview session.
Declaration
bool CanPreviewDocument(IPublishedContent content)
Parameters
| Type | Name | Description |
|---|---|---|
| IPublishedContent | content | The unpublished version of the document. |
Returns
| Type | Description |
|---|---|
| bool |
|