Click or drag to resize

DataContextEstablishUserRolesForPage(Type, RecordOperationsCache, 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,
	RecordOperationsCache cache,
	Object viewBag
)
View Source

Parameters

model  Type
Modeled database table (or view) type.
cache  RecordOperationsCache
Data hub record operations cache.
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