PermissionPermissionCheck Method (String, String, CRUD, ListPermissionSimple) | |
Check Permission CRUDs and Session Token. Gives permission (true or false)
Namespace:
SOWIApp.Management
Assembly:
SOWIApp.Management (in SOWIApp.Management.dll) Version: 19.1.23.1 (19.1.23.622)
Syntax public static bool PermissionCheck(
string pToken,
string pModuleName,
CRUD[] pClaims,
List<PermissionSimple> pPermissions = null
)
Public Shared Function PermissionCheck (
pToken As String,
pModuleName As String,
pClaims As CRUD(),
Optional pPermissions As List(Of PermissionSimple) = Nothing
) As Boolean
Parameters
- pToken
- Type: SystemString
User session token - pModuleName
- Type: SystemString
Module name check Permission - pClaims
- Type: SOWIData.ManagementCRUD
Use Permission - pPermissions (Optional)
- Type: System.Collections.GenericListPermissionSimple
list based SOWIData.Management.PermissionSimple
Return Value
Type:
Booleantrue -> yes User has permission; false -> no user hasn't permission
See Also