mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 23:46:53 +00:00
Get all group repos by user.
This commit is contained in:
@@ -609,6 +609,14 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
|
||||
def get_group_shared_repo_by_path(repo_id, path, group_id, is_org):
|
||||
pass
|
||||
|
||||
@searpc_func("objlist", ["string"])
|
||||
def get_group_repos_by_user (user):
|
||||
pass
|
||||
|
||||
@searpc_func("objlist", ["string", "int"])
|
||||
def get_org_group_repos_by_user (user, org_id):
|
||||
pass
|
||||
|
||||
@searpc_func("objlist", ["string", "string", "string"])
|
||||
def seafile_get_shared_users_for_subdir(repo_id, path, from_user):
|
||||
pass
|
||||
|
@@ -446,6 +446,15 @@ class SeafileAPI(object):
|
||||
"""
|
||||
return seafserv_threaded_rpc.get_group_shared_repo_by_path(repo_id, path, group_id, 1 if is_org else 0)
|
||||
|
||||
def get_group_repos_by_user (self, user):
|
||||
"""
|
||||
Return all the repos in all groups that the @user belongs to.
|
||||
"""
|
||||
return seafserv_threaded_rpc.get_group_repos_by_user(user)
|
||||
|
||||
def get_org_group_repos_by_user (self, user, org_id):
|
||||
return seafserv_threaded_rpc.get_org_group_repos_by_user(user, org_id)
|
||||
|
||||
def list_repo_shared_group_by_user(self, from_user, repo_id):
|
||||
"""
|
||||
Return: a list of SharedGroup objects (lib/repo.vala)
|
||||
|
Reference in New Issue
Block a user