UserSecurityHelperIsAuthorizedPerUIElement Method (String, String, Boolean, String, UserInfo) |
Checks whether the user is authorized for given UI element of the specified resource, returns true if so.
Namespace: CMS.MembershipAssembly: CMS.Membership (in CMS.Membership.dll) Version: 13.0.131
Syntax public static bool IsAuthorizedPerUIElement(
string resourceName,
string elementName,
bool siteAvailabilityRequired,
string siteName,
UserInfo userInfo
)
Parameters
- resourceName
- Type: SystemString
Resource code name - elementName
- Type: SystemString
UI element code name - siteAvailabilityRequired
- Type: SystemBoolean
Indicates if site availability of the corresponding resource (resource with name in format "cms.[ElementName]") is required. Takes effect only when corresponding resource exists - siteName
- Type: SystemString
Site code name - userInfo
- Type: CMS.MembershipUserInfo
User to check
Return Value
Type:
BooleanSee Also