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: 10.0.0
Syntaxpublic 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