Class PrincipalInfo
Legacy helper that wraps IPrincipal
Inheritance
System.Object
PrincipalInfo
Namespace: EPiServer.Security
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3Syntax
public class PrincipalInfo : Object
Constructors
PrincipalInfo(IPrincipal)
Obsolete method, use IPrincipal directly
Declaration
public PrincipalInfo(IPrincipal principal)
Parameters
Type | Name | Description |
---|---|---|
System. |
principal |
Properties
CurrentPrincipal
Gets service IPrincipal
Declaration
public static IPrincipal CurrentPrincipal { get; }
Property Value
Type | Description |
---|---|
System. |
HasEditAccess
Checks for user is in the role CmsEditors or if the current request is in edit mode
Declaration
public static bool HasEditAccess { get; }
Property Value
Type | Description |
---|---|
System. |
Methods
IsPermitted(PermissionType)
Obsolete method, use PermissionService.IsPermitted
Declaration
public bool IsPermitted(PermissionType permissionType)
Parameters
Type | Name | Description |
---|---|---|
Permission |
permissionType |
Returns
Type | Description |
---|---|
System. |