Click or drag to resize
ECommerceHelperIsUserAuthorizedForPermission Method (String, String, IUserInfo, Boolean)
Checks the specified ecommerce permission for the given user.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 8.2.23
Syntax
C#
public static bool IsUserAuthorizedForPermission(
	string permissionName,
	string siteName,
	IUserInfo user,
	bool exceptionOnFailure
)

Parameters

permissionName
Type: SystemString
Permission name to be checked
siteName
Type: SystemString
Site name
user
Type: CMS.BaseIUserInfo
User to be checked
exceptionOnFailure
Type: SystemBoolean
If true, PermissionCheckException is thrown whenever a permission check fails

Return Value

Type: Boolean
See Also