1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-19 01:17:26 +00:00

Add argument for ccnet_get_groups_by_user().

This commit is contained in:
cuihaikuo
2018-05-15 11:29:17 +08:00
parent ebd04e524f
commit cca240c2af
2 changed files with 2 additions and 2 deletions

View File

@@ -4040,7 +4040,7 @@ seaf_get_group_repos_by_user (SeafRepoManager *mgr,
return NULL; return NULL;
/* Get the groups this user belongs to. */ /* Get the groups this user belongs to. */
groups = ccnet_get_groups_by_user (rpc_client, user); groups = ccnet_get_groups_by_user (rpc_client, user, 1);
if (!groups) { if (!groups) {
goto out; goto out;
} }

View File

@@ -55,7 +55,7 @@ check_group_permission_by_user (SeafRepoManager *mgr,
return NULL; return NULL;
/* Get the groups this user belongs to. */ /* Get the groups this user belongs to. */
groups = ccnet_get_groups_by_user (rpc_client, user_name); groups = ccnet_get_groups_by_user (rpc_client, user_name, 1);
if (!groups) { if (!groups) {
goto out; goto out;
} }