Interface IContentAccessEvaluator
Component responsible for evaluating what access a user has to a specific content item.
Namespace: EPiServer.Security
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public interface IContentAccessEvaluatorMethods
GetAccessLevel(IContent, IPrincipal)
Calculates the access level of the provided System.Security.Principal.IPrincipal to the IContent instance in the current context.
Declaration
AccessLevel GetAccessLevel(IContent content, IPrincipal principal)Parameters
| Type | Name | Description | 
|---|---|---|
| IContent | content | |
| System.Security.Principal.IPrincipal | principal | 
Returns
| Type | Description | 
|---|---|
| AccessLevel | 
HasAccess(IContent, IPrincipal, AccessLevel)
Evaluates if the provided System.Security.Principal.IPrincipal has the requested access rights to the provided IContent instance in the current context.
Declaration
bool HasAccess(IContent content, IPrincipal principal, AccessLevel access)Parameters
| Type | Name | Description | 
|---|---|---|
| IContent | content | |
| System.Security.Principal.IPrincipal | principal | |
| AccessLevel | access | 
Returns
| Type | Description | 
|---|---|
| System.Boolean | 
 | 
