Property | Type | Description | |
---|---|---|---|
CustomPermissionKey | string |
Method | Description | |
---|---|---|
PermissionController ( int zoneId, int appId, System.Guid typeGuid, IEntity targetItem, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System | ||
PermissionController ( int zoneId, int appId, System.Guid typeGuid, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System |
Initialize this object so it can then give information regarding the permissions of an entity. Uses a GUID as identifier because that survives export/import.
|
|
UserMay ( PermissionGrant action ) : bool | ||
UserMay ( char actionCode ) : bool |
Check if a user may do something based on the permissions in the background.
|
Method | Description | |
---|---|---|
DoesPermissionAllow ( IEntity permissionEntity, char desiredActionCode ) : bool |
Check if a specific permission entity allows for the desired permission
|
|
DoesPermissionsListAllow ( char desiredActionCode ) : bool |
Check if the permission-list would allow such an action
|
public PermissionController ( int zoneId, int appId, System.Guid typeGuid, IEntity targetItem, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System | ||
zoneId | int | |
appId | int | |
typeGuid | System.Guid | |
targetItem | IEntity | |
module | DotNetNuke.Entities.Modules.ModuleInfo | |
return | System |
public PermissionController ( int zoneId, int appId, System.Guid typeGuid, DotNetNuke.Entities.Modules.ModuleInfo module = null ) : System | ||
zoneId | int | EAV Zone |
appId | int | EAV APP |
typeGuid | System.Guid | Entity GUID to check permissions against |
module | DotNetNuke.Entities.Modules.ModuleInfo | DNN Module - necessary for SecurityAccessLevel checks |
return | System |
public UserMay ( PermissionGrant action ) : bool | ||
action | PermissionGrant | |
return | bool |
public UserMay ( char actionCode ) : bool | ||
actionCode | char | Short-code for r=read, u=update etc. |
return | bool |