Click or drag to resize

IOperationServiceCheckPermissions Method

Checks the user has permissions.

Namespace: Resto.Front.Api
Assembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntax
C#
bool CheckPermissions(
	IUser user,
	string[] permissionCodes,
	PermissionsCheckMode checkMode,
	IRole role = null
)

Parameters

user  IUser
User to get his permissions.
permissionCodes  String
Permission codes for check.
checkMode  PermissionsCheckMode
Permission codes check mode.
role  IRole  (Optional)
User role to get user permissions. If null, check all roles available to the user.

Return Value

Boolean
True if the user has permissions, otherwise false.
Exceptions
ExceptionCondition
ArgumentExceptionPermissions not found.
See Also