Venice
Dossier::IsActionAllowed
 
Is this action allowed for the current Venice user?
 
VARIANT_BOOL IsActionAllowed (
    enum eAccessAction eAccessAction,
    BSTR bsItem
)
 
Parameters
eAccessAction
[in] A value of the 'eAccessAction' enumeration.
bsItem
[in] The name of the item of which you want to know if it is allowed for the current Venice user. For an overview of all names, use the 'Groups and rights'-module of your Venice installation. Select 'Show codes' in the 'Rights' tab of the dialog and in the tree you'll find the string and the eAccessAction to use here.
 
See Also
CreateDossierContext
 
Samples
 
C++
 
// Check if the current Venice user has the rights to start the customer dialog
if (pDossier->IsActionAllowed (aaDialog, "Custm"))
    // User has the rights to start the customer dialog

// Check if the current Venice user has the rights to close a VAT period
if (pDossier->IsActionAllowed (aaSpecial, "BeRCl"))
    // User has the rights to close a VAT period

C#
 
// Check if the current Venice user has the rights to start the customer dialog
if (oDossier.IsActionAllowed (eAccessAction.aaDialog, "Custm"))
    // User has the rights to start the customer dialog

// Check if the current Venice user has the rights to close a VAT period
if (oDossier.IsActionAllowed (eAccessAction.aaSpecial, "BeRCl"))
    // User has the rights to close a VAT period

VBS
 
' Check if the current Venice user has the rights to start the customer dialog
If oDossier.IsActionAllowed(aaDialog, "Custm") Then
    ' User has the rights to start the customer dialog
End If

' Check if the current Venice user has the rights to close a VAT period
If oDossier.IsActionAllowed(aaSpecial, "BeRCl") Then
    ' User has the rights to close a VAT period
End If

VB.NET
 
' Check if the current Venice user has the rights to start the customer dialog
If oDossier.IsActionAllowed(eAccessAction.aaDialog, "Custm") Then
    ' User has the rights to start the customer dialog
End If

' Check if the current Venice user has the rights to close a VAT period
If oDossier.IsActionAllowed(eAccessAction.aaSpecial, "BeRCl") Then
    ' User has the rights to close a VAT period
End If