IOperationServiceCheckPermission Method |
Checks the user has the permission.
Namespace: Resto.Front.ApiAssembly: Resto.Front.Api.V9 (in Resto.Front.Api.V9.dll)
Syntaxbool CheckPermission(
IUser user,
string permissionCode,
IRole role = null
)
Parameters
- user IUser
-
User to get his permissions.
- permissionCode String
-
Permission code for check.
- 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 the permission, otherwise false.
Exceptions
See Also