Class ContentPermissionHelper
- Namespace
- Dynamicweb.Content
- Assembly
- Dynamicweb.dll
[Obsolete("Do not use. This class exists for migration purposes only!")]
public class ContentPermissionHelper
- Inheritance
-
ContentPermissionHelper
- Inherited Members
Methods
HasAccessToArea(Area, PermissionLevel)
public static bool HasAccessToArea(Area area, PermissionLevel permission)
Parameters
area
Areapermission
PermissionLevel
Returns
HasAccessToArea(int, PermissionLevel)
public static bool HasAccessToArea(int areaId, PermissionLevel permission)
Parameters
areaId
intpermission
PermissionLevel
Returns
HasAccessToAreaRootPage(Area, PermissionLevel)
public static bool HasAccessToAreaRootPage(Area area, PermissionLevel permission)
Parameters
area
Areapermission
PermissionLevel
Returns
HasAccessToAreaRootPage(int, PermissionLevel)
public static bool HasAccessToAreaRootPage(int areaId, PermissionLevel permission)
Parameters
areaId
intpermission
PermissionLevel
Returns
HasAccessToPage(PageTreeItem, PermissionLevel)
public static bool HasAccessToPage(PageTreeItem pageTreeItem, PermissionLevel permission)
Parameters
pageTreeItem
PageTreeItempermission
PermissionLevel
Returns
HasAccessToPage(Page, PermissionLevel)
public static bool HasAccessToPage(Page page, PermissionLevel permission)
Parameters
page
Pagepermission
PermissionLevel
Returns
HasAccessToParagraph(Paragraph, PermissionLevel)
public static bool HasAccessToParagraph(Paragraph paragraph, PermissionLevel permission)
Parameters
paragraph
Paragraphpermission
PermissionLevel
Returns
HasDefaultAreaAccess(PermissionLevel)
Checks permissions for the root of all websites (base area permissions).
public static bool HasDefaultAreaAccess(PermissionLevel permission)
Parameters
permission
PermissionLevel- Permission level that should be checked
Returns
- bool
- hasAccess
LegacyHasDefaultAreaAccess(PermissionLevel)
public static bool LegacyHasDefaultAreaAccess(PermissionLevel permission)
Parameters
permission
PermissionLevel
Returns
UseNewPermission()
public static bool UseNewPermission()