WidgetRoleInfoProviderIsWidgetAllowed Method (WidgetInfo, Int32, Boolean) |
Return true if widget is allowed for specified user.
Only security settings is considered. Widget still can be allowed for group admins.
Namespace: CMS.PortalEngineAssembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 8.2.23
Syntax public static bool IsWidgetAllowed(
WidgetInfo wi,
int userId,
bool isAuthenticated
)
Parameters
- wi
- Type: CMS.PortalEngineWidgetInfo
Widget info - userId
- Type: SystemInt32
ID of the accessing user - isAuthenticated
- Type: SystemBoolean
Value indicating if accessing user is authenticated
Return Value
Type:
BooleanSee Also