Skip to content

Codeunit WSB_STMPermissionMgt

Provides functionality for handling permissions for Status Management.

Properties

Name Value
Access Public

Methods

wgFncCheckPermissions

Checks whether the current user has permissions for an action in a certain status.

Parameters

Type Name Description
Enum "WSB_STMStatusAppliesToType" pAppliesToType Applies-to Type
Code[10] pStatusCode Status Code
Enum "WSB_STMStatusAction" pStatusAction Status Action

wgFncCheckPermissions

Checks whether the current user has permissions for an action in a certain status.

Parameters

Type Name Description
Enum "WSB_STMStatusAppliesToType" pAppliesToType Applies-to Type
Enum "WSB_STMDocumentType" pDocumentType Document Type
Code[10] pStatusCode Status Code
Enum "WSB_STMStatusAction" pStatusAction Status Action

wgFncCheckPermissions

Checks whether the current user has permissions for a status.

Parameters

Type Name Description
Record "WSB_STMStatusSetup" pRecWSB_STMStatusSetup The Status
Enum "WSB_PermissionType" pCheckPermissionType The permission type to check for.

wgFncGetPermissionTypeFromAction

Gets the Permission Type corresponding to a status action.

Parameters

Type Name Description
Enum "WSB_STMStatusAction" pStatusAction Status action.
Enum "WSB_PermissionType" vPermissionType The matching permission type.

Returns

Type Description
Boolean true iff a matching permission type exists.

wgFncHasPermissions

Retrieves whether the current user has permissions for an action in a certain status.

Parameters

Type Name Description
Enum "WSB_STMStatusAppliesToType" pAppliesToType Applies-to Type
Code[10] pStatusCode Status Code
Enum "WSB_STMStatusAction" pStatusAction Status Action

Returns

Type Description
Boolean true iff the user has permissions.

wgFncHasPermissions

Retrieves whether the current user has permissions for an action in a certain status.

Parameters

Type Name Description
Enum "WSB_STMStatusAppliesToType" pAppliesToType Applies-to Type
Enum "WSB_STMDocumentType" pDocumentType Document Type
Code[10] pStatusCode Status Code
Enum "WSB_STMStatusAction" pStatusAction Status Action

Returns

Type Description
Boolean true iff the user has permissions.

wgFncHasPermissions

Retrieves whether the current user has permissions for a status.

Parameters

Type Name Description
Record "WSB_STMStatusSetup" pRecWSB_STMStatusSetup The Status
Enum "WSB_PermissionType" pCheckPermissionType The permission type to check for.

Returns

Type Description
Boolean true iff the user has permissions.

wgFncHasPermissions

Retrieves whether the current user has permissions for an action in a certain status.

Parameters

Type Name Description
Record "WSB_STMStatusSetup" pRecWSB_STMStatusSetup The Status
Enum "WSB_STMStatusAction" pStatusAction The Status Action

Returns

Type Description
Boolean true iff the user has permissions.

wlEvpOnBeforeGetPermissionTypeFromAction

Allows to hook into getting the permission type for a certain status action.

Parameters

Type Name Description
Enum "WSB_STMStatusAction" pStatusAction The status action.
Boolean vIsHandled Whether your event subscriber handles retrieving the permission type for this status action.
Enum "WSB_PermissionType" vPermissionType The permission type.
Boolean vMatchingTypeExists Whether a matching permission type exists for this status action.