UserInfoIsAuthorizedPerUIElement Method (Int32, String, Boolean) |
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: 10.0.0
Syntax public virtual bool IsAuthorizedPerUIElement(
int resourceID,
string elementName,
bool siteAvailabilityRequired = false
)
Parameters
- resourceID
- Type: SystemInt32
Resource ID - elementName
- Type: SystemString
UI element code name - siteAvailabilityRequired (Optional)
- 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
Return Value
Type:
BooleanSee Also