Click or drag to resize

DataContextEstablishUserRolesForPageTModel(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<TModel>(
	RecordOperationsCache cache,
	Object viewBag
)
where TModel : class, new()
View Source

Parameters

cache  RecordOperationsCache
Data hub record operations cache.
viewBag  Object
ViewBag for the current view.

Type Parameters

TModel
Modeled database table (or 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