Click or drag to resize
DiscountInfoProviderIsUserAuthorizedToModifyDiscount Method
Indicates if user is authorized to modify discount.

Namespace: CMS.Ecommerce
Assembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 12.0.0
Syntax
C#
public static bool IsUserAuthorizedToModifyDiscount(
	string siteName,
	IUserInfo user,
	bool exceptionOnFailure = false
)

Parameters

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

Return Value

Type: Boolean
See Also