Interface IPublicAccessChecker
Namespace: Umbraco.Cms.Core.Security
Assembly: Umbraco.Core.dll
Syntax
public interface IPublicAccessChecker
Methods
View SourceHasMemberAccessToContentAsync(Int32)
Tests the current member access level to a given content item.
Declaration
Task<PublicAccessStatus> HasMemberAccessToContentAsync(int publishedContentId)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | publishedContentId | The ID of the content item. |
Returns
Type | Description |
---|---|
Task<PublicAccessStatus> | The access level for the content item. |
HasMemberAccessToContentAsync(Int32, ClaimsPrincipal)
Tests member access level to a given content item.
Declaration
virtual Task<PublicAccessStatus> HasMemberAccessToContentAsync(int publishedContentId, ClaimsPrincipal claimsPrincipal)
Parameters
Type | Name | Description |
---|---|---|
System.Int32 | publishedContentId | The ID of the content item. |
System.Security.Claims.ClaimsPrincipal | claimsPrincipal | The member claims to test against the content item. |
Returns
Type | Description |
---|---|
Task<PublicAccessStatus> | The access level for the content item. |