Click or drag to resize
ECommerceHelperIsUserAuthorizedToModifyConfiguration Method (Boolean, String, IUserInfo, Boolean)
Checks whether the user is authorized to modify site/global e-commerce configuration.

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

Parameters

global
Type: SystemBoolean
True - permission 'ConfigurationGlobalModify' is checked, False - permission 'ConfigurationGlobalModify' is 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