Click or drag to resize
OptionCategoryInfoProviderIsUserAuthorizedToModifyOptionCategory Method (Boolean, String, IUserInfo, Boolean)
Indicates if user is authorized to modify option categories.

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

Parameters

global
Type: SystemBoolean
For global option categories (global = True): 'EcommerceGlobalModify' permission is checked. For site-specific option categories (global = False): 'EcommerceModify' OR 'ModifyProducts' permission is checked.
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