Table of Contents

Class ContentItemFieldsSourceExtensions

Namespace
Kentico.Content.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

Provides extension methods for IContentItemFieldsSource.

public static class ContentItemFieldsSourceExtensions
Inheritance
object
ContentItemFieldsSourceExtensions

Methods

HasAccess(IContentItemFieldsSource, ClaimsPrincipal)

Determines whether the specified user has access to the content item.

public static bool HasAccess(this IContentItemFieldsSource contentItem, ClaimsPrincipal user)

Parameters

contentItem IContentItemFieldsSource

The content item to check access for.

user ClaimsPrincipal

The user to check access for.

Returns

bool

true if the user has access; otherwise, false.