Click or drag to resize

IAppControllerDataItemClassPermissionCheck Method

Namespace:  SOWIApp.Foundation
Assembly:  SOWIApp.Foundation (in SOWIApp.Foundation.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax
bool PermissionCheck(
	CRUD[] pClaims
)

Parameters

pClaims
Type: SOWIData.ManagementCRUD

[Missing <param name="pClaims"/> documentation for "M:SOWIApp.Foundation.IAppController`1.PermissionCheck(SOWIData.Management.CRUD[])"]

Return Value

Type: Boolean

[Missing <returns> documentation for "M:SOWIApp.Foundation.IAppController`1.PermissionCheck(SOWIData.Management.CRUD[])"]

Examples
Check permission: get permission from SOWI App Management with parameter Session User and module name is Controller name
//internal list of Permission for better performance
private List<SOWIData.Management.PermissionSimple> _Permission;

protected bool PermissionCheck(SOWIData.Management.CRUD[] pClaim)
{
    if (_Permission == null)
    {
        _Permission = SOWIApp.Management.Permission.GetPermission(SOWIWeb.Helper.Session.UserName, this.ControllerName);
    }
    return SOWIApp.Management.Permission.PermissionCheck(SOWIWeb.Helper.Session.Token, this.ControllerName, pClaim, this._Permission);
}
See Also