Class PermissionLevelExtension
- Namespace
- Dynamicweb.Security.Permissions
- Assembly
- Dynamicweb.Security.dll
Extension class for parsing permission levels.
public static class PermissionLevelExtension
- Inheritance
-
PermissionLevelExtension
- Inherited Members
Methods
HasPermission(PermissionLevel, PermissionLevel)
Checks to see if specified permission is allowed.
public static bool HasPermission(this PermissionLevel ownedPermission, PermissionLevel requiredPermission)
Parameters
ownedPermission
PermissionLevel- Owned permission
requiredPermission
PermissionLevel- Permissions to be tested against
Returns
- bool
- hasSufficientPermission