diff --git a/appsrc/service/user_mgr_service.cpp b/appsrc/service/user_mgr_service.cpp index 3a11b4c..d0a8c13 100644 --- a/appsrc/service/user_mgr_service.cpp +++ b/appsrc/service/user_mgr_service.cpp @@ -12,7 +12,7 @@ void UserMgrService::initialize() { REG_EXTFN_VOID(unlogin, void()); REG_EXTFN(addUser, void(string, string, UsrRoleType), name, passwd, roleType); REG_EXTFN(chpasswd, void(int, string, string), id, newpasswd, passwd); - REG_EXTFN(changeUsrRoleType, void(int, UsrRoleType), name, roleType); + REG_EXTFN(changeUsrRoleType, void(int, UsrRoleType), id, roleType); REG_EXTFN(delUser, void(int), id); REG_EXTFN(updateUserName, void(int, string), id, name); REG_EXTFN_VOID(getAllUser, void());