Checks whether the user is authorized to access products from the specified department. 
            Returns true if user is global admin or is granted with 'AccessAllDepartments' e-commerce module permission or he is administrator of the given department.
            
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.0.0.0 (8.0.5239.26125)
Parameters
- departmentId
 - Type: 
System Int32
ID of the department 
- siteName
 - Type: 
System String
Site name 
- user
 - Type: CMS.Base IUserInfo
User to be checked 
Return Value
Type:See Also