ContactHelperAuthorizedForObject Method |
Returns true if user is authorized per resource
Namespace: CMS.OnlineMarketingAssembly: CMS.OnlineMarketing (in CMS.OnlineMarketing.dll) Version: 8.2.23
Syntax public static bool AuthorizedForObject(
int siteID,
string permissionSite,
string permissionGlobal,
string globalSetting,
bool noPermissionRedirect
)
Parameters
- siteID
- Type: SystemInt32
Object's site ID - permissionSite
- Type: SystemString
Name of the permission for site objects - permissionGlobal
- Type: SystemString
Name of the permission for global objects - globalSetting
- Type: SystemString
Name of settings for global objects - noPermissionRedirect
- Type: SystemBoolean
Indicates if redirect should be done when not enough permissions
Return Value
Type:
BooleanReturns TRUE if user is authorized for the object
See Also