IOperationServiceCheckPermissions Method |
Checks the user has permissions.
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V10 (in Resto.Front.Api.V10.dll)
Syntaxbool 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
See Also