Click or drag to resize
WidgetRoleInfoProviderIsWidgetAllowed Method (Int32, Int32, Boolean)
Returns true if widget is allowed for specified user.

Namespace: CMS.PortalEngine
Assembly: CMS.PortalEngine (in CMS.PortalEngine.dll) Version: 10.0.0
Syntax
C#
public static bool IsWidgetAllowed(
	int widgetId,
	int userId,
	bool isAuthenticated
)

Parameters

widgetId
Type: SystemInt32
ID of the widget
userId
Type: SystemInt32
ID of the accessing user
isAuthenticated
Type: SystemBoolean
Value indicating if accessing user is authenticated

Return Value

Type: Boolean
See Also