using System.Security.Claims; namespace Umbraco.Cms.Core.Security; public interface IPublicAccessChecker { /// /// Tests the current member access level to a given content item. /// /// The ID of the content item. /// The access level for the content item. Task HasMemberAccessToContentAsync(int publishedContentId); /// /// Tests member access level to a given content item. /// /// The ID of the content item. /// The member claims to test against the content item. /// The access level for the content item. Task HasMemberAccessToContentAsync(int publishedContentId, ClaimsPrincipal claimsPrincipal) => Task.FromResult(PublicAccessStatus.AccessDenied); }