From 8a620762e84db154fd16e1cc005cf31ec8fd6703 Mon Sep 17 00:00:00 2001 From: Peter Donker Date: Tue, 2 May 2017 21:52:10 +0200 Subject: [PATCH] Fix to delete role/switching off role --- Connect.UserAccess/Services/UserAccessController.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Connect.UserAccess/Services/UserAccessController.cs b/Connect.UserAccess/Services/UserAccessController.cs index cb8987c..26a40e9 100644 --- a/Connect.UserAccess/Services/UserAccessController.cs +++ b/Connect.UserAccess/Services/UserAccessController.cs @@ -50,7 +50,7 @@ public HttpResponseMessage UserRole(SetUserRoleDTO data) } else { - UserRepository.Instance.DeleteUserRole(data.userId, data.userId); + UserRepository.Instance.DeleteUserRole(data.userId, data.roleId); } return Request.CreateResponse(HttpStatusCode.OK, UserRepository.Instance.GetRoles(PortalId, data.userId, data.roleGroupId)); }