Class PermissionHelper
Inheritance
System.Object
PermissionHelper
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
|
Improve this Doc
View Source
AddUserPermission(Permissions, PermissionInfoBase)
Declaration
public static void AddUserPermission(this Permissions dto, PermissionInfoBase permissionInfo)
Parameters
|
Improve this Doc
View Source
EnsureDefaultRoles(Permissions)
Declaration
public static void EnsureDefaultRoles(this Permissions dto)
Parameters
|
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
|
Improve this Doc
View Source
EnsureRole(Permissions, RoleInfo)
Declaration
public static void EnsureRole(this Permissions dto, RoleInfo role)
Parameters
|
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
Returns
Type |
Description |
System.Boolean |
|
|
Improve this Doc
View Source
IsViewPermisison(PermissionInfo)
Declaration
public static bool IsViewPermisison(PermissionInfo permissionInfo)
Parameters
Returns
Type |
Description |
System.Boolean |
|