BizDeskSecurity.CanUserAccess
Use this method to determine whether the current user has read access rights to the specified Commerce Server Business Desk module.
Definition
Function CanUserAccess(bstrPath As String,) As Boolean
Parameters
bstrPath
A String that contains the file name and path for a Business Desk module.
Return Values
If this method completes successfully, it returns a Boolean set to either True or False. A value of True indicates that the current user has read access rights to the specified file. A value of False indicates that the current user does not have read access rights to the specified file.
Error Values
This method sets the Number property of the global Err object to S_OK (&H00000000) to indicate success and to standard COM error values to indicate failure. For more information about standard COM errors, see Standard COM Errors. Additional information may be available using the global Err object. In particular, the Description property may contain a text description of the error.
Remarks
Whether the user has read access to the specified Business Desk module is determined from the entries in the access control lists (ACLs) set for the file.
For more information about memory ownership issues related to COM property and method parameters, see Managing COM Parameter Memory.
' bAccess is a Boolean
' oBizDeskSecurity is a Commerce.BizDeskSecurity object
' CatalogEditor.asp is an ASP page corresponding to a Business Desk module
bAccess = oBizDeskSecurity.CanUserAccess("CatalogEditor.asp")