Click or drag to resize

DataContextEstablishUserRolesForPage(Type, Type, 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.218-beta
Syntax
public void EstablishUserRolesForPage(
	Type model,
	Type hub,
	Object viewBag
)
View Source

Parameters

model  Type
Modeled database table (or view) type.
hub  Type
Type of SignalR hub that implements IRecordOperationsHub.
viewBag  Object
ViewBag for the current view.
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