1
0
mirror of https://github.com/haiwen/ccnet-server.git synced 2025-09-01 12:56:27 +00:00

Change wrapper function of get_groups().

This commit is contained in:
cuihaikuo
2018-05-15 11:26:01 +08:00
parent 7bb0f9ccc3
commit c29fa12ca1
2 changed files with 3 additions and 3 deletions

View File

@@ -181,14 +181,14 @@ ccnet_get_binding_email (SearpcClient *client, const char *peer_id)
}
GList *
ccnet_get_groups_by_user (SearpcClient *client, const char *user)
ccnet_get_groups_by_user (SearpcClient *client, const char *user, int return_ancestors)
{
if (!user)
return NULL;
return searpc_client_call__objlist (
client, "get_groups", CCNET_TYPE_GROUP, NULL,
1, "string", user);
2, "string", user, "int", return_ancestors);
}
GList *