• Share
    • Twitter
    • LinkedIn
    • Facebook
    • Email
  • Feedback
  • Improve this Doc

Class PermissionHelper

Inheritance
System.Object
PermissionHelper
Namespace: Dnn.PersonaBar.Library.Helper
Assembly: Dnn.PersonaBar.Library.dll
Syntax
public static class PermissionHelper : object

Methods

| Improve this Doc View Source

AddRolePermission(Permissions, PermissionInfoBase)

Declaration
public static void AddRolePermission(this Permissions dto, PermissionInfoBase permissionInfo)
Parameters
Type Name Description
Permissions dto
PermissionInfoBase permissionInfo
| Improve this Doc View Source

AddUserPermission(Permissions, PermissionInfoBase)

Declaration
public static void AddUserPermission(this Permissions dto, PermissionInfoBase permissionInfo)
Parameters
Type Name Description
Permissions dto
PermissionInfoBase permissionInfo
| Improve this Doc View Source

EnsureDefaultRoles(Permissions)

Declaration
public static void EnsureDefaultRoles(this Permissions dto)
Parameters
Type Name Description
Permissions dto
| Improve this Doc View Source

EnsureRole(Permissions, RoleInfo, Boolean, Boolean)

Declaration
public static void EnsureRole(this Permissions dto, RoleInfo role, bool locked, bool isDefault)
Parameters
Type Name Description
Permissions dto
RoleInfo role
System.Boolean locked
System.Boolean isDefault
| Improve this Doc View Source

EnsureRole(Permissions, RoleInfo, Boolean)

Declaration
public static void EnsureRole(this Permissions dto, RoleInfo role, bool locked)
Parameters
Type Name Description
Permissions dto
RoleInfo role
System.Boolean locked
| Improve this Doc View Source

EnsureRole(Permissions, RoleInfo)

Declaration
public static void EnsureRole(this Permissions dto, RoleInfo role)
Parameters
Type Name Description
Permissions dto
RoleInfo role
| Improve this Doc View Source

GetRoles(Int32)

Declaration
public static object GetRoles(int portalId)
Parameters
Type Name Description
System.Int32 portalId
Returns
Type Description
System.Object
| Improve this Doc View Source

IsFullControl(PermissionInfo)

Declaration
public static bool IsFullControl(PermissionInfo permissionInfo)
Parameters
Type Name Description
PermissionInfo permissionInfo
Returns
Type Description
System.Boolean
| Improve this Doc View Source

IsViewPermisison(PermissionInfo)

Declaration
public static bool IsViewPermisison(PermissionInfo permissionInfo)
Parameters
Type Name Description
PermissionInfo permissionInfo
Returns
Type Description
System.Boolean
  • View Source
Back to top by the community, for the community... #DNNCMS