mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-19 18:16:25 +00:00
Add argument for ccnet_get_groups_by_user().
This commit is contained in:
@@ -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;
|
||||||
}
|
}
|
||||||
|
@@ -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;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user