Venice
Venice::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
CreateVenice
 
Samples
 
C++
 
// Check if the current Venice user has the rights to start the customer dialog
if (pVenice->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 (pVenice->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 (oVenice.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 (oVenice.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 oVenice.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 oVenice.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 oVenice.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 oVenice.IsActionAllowed(eAccessAction.aaSpecial, "BeRCl") Then
    ' User has the rights to close a VAT period
End If