ECommerceHelperIsUserAuthorizedForPermission Method (String, String, IUserInfo, Boolean) |
Checks the specified ecommerce permission for the given user.
Namespace: CMS.EcommerceAssembly: CMS.Ecommerce (in CMS.Ecommerce.dll) Version: 11.0.0
Syntax 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:
BooleanSee Also