Click or drag to resize
WidgetRoleInfoProvider.IsWidgetAllowed 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.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 11.0.0
Syntax
C#
public static bool IsWidgetAllowed(
	WidgetInfo wi,
	int userId,
	bool isAuthenticated
)

Parameters

wi
Type: CMS.PortalEngine.WidgetInfo
Widget info
userId
Type: System.Int32
ID of the accessing user
isAuthenticated
Type: System.Boolean
Value indicating if accessing user is authenticated

Return Value

Type: Boolean
See Also