Click or drag to resize

DataContextEstablishUserRolesForPageTModel, THub(Object) Method

Looks up proper user roles for paged based on modeled security in RecordOperationsCache.

Namespace: GSF.Web.Model
Assembly: GSF.Web (in GSF.Web.dll) Version: 2.4.181-beta
Syntax
public void EstablishUserRolesForPage<TModel, THub>(
	Object viewBag
)
where TModel : class, new()
where THub : new(), IRecordOperationsHub
View Source

Parameters

viewBag  Object
ViewBag for the current view.

Type Parameters

TModel
Modeled database table (or view).
THub
SignalR hub that implements IRecordOperationsHub.
Remarks
Typically used in paged view model scenarios and invoked by controller prior to view rendering. Security is controlled at hub level, so failure to call will not impact security but may result in screen enabling and/or showing controls that the user does not actually have access to and upon attempted use will result in a security error.
See Also