UserInfo IsAuthorizedPerUIElement Method (Int32, String, Boolean)Kentico 8.1 API Reference
Checks whether the user is authorized for given UI element of the specified resource, returns true if so.

Namespace: CMS.Membership
Assembly: CMS.Membership (in CMS.Membership.dll) Version: 8.0.0.0 (8.1.5347.20411)

Parameters

resourceID
Type: OnlineSystem Int32
Resource ID
elementName
Type: OnlineSystem String
UI element code name
siteAvailabilityRequired (Optional)
Type: OnlineSystem Boolean
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: OnlineBoolean
See Also