Class ContentItemFieldsSourceExtensions
Provides extension methods for IContentItemFieldsSource.
public static class ContentItemFieldsSourceExtensions
- Inheritance
-
objectContentItemFieldsSourceExtensions
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
contentItemIContentItemFieldsSourceThe content item to check access for.
userClaimsPrincipalThe user to check access for.
Returns
- bool
trueif the user has access; otherwise,false.