mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-08-31 15:11:08 +00:00
Merge branch '6.2'
This commit is contained in:
@@ -1029,3 +1029,11 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
|
||||
@searpc_func("int", ["string", "int"])
|
||||
def repo_has_been_shared (repo_id, including_groups):
|
||||
pass
|
||||
|
||||
@searpc_func("objlist", ["string"])
|
||||
def get_shared_users_by_repo (repo_id):
|
||||
pass
|
||||
|
||||
@searpc_func("objlist", ["int", "string"])
|
||||
def org_get_shared_users_by_repo (org_id, repo_id):
|
||||
pass
|
||||
|
@@ -740,6 +740,12 @@ class SeafileAPI(object):
|
||||
def repo_has_been_shared(self, repo_id, including_groups=False):
|
||||
return True if seafserv_threaded_rpc.repo_has_been_shared(repo_id, 1 if including_groups else 0) else False
|
||||
|
||||
def get_shared_users_by_repo(self, repo_id):
|
||||
return seafserv_threaded_rpc.get_shared_users_by_repo (repo_id)
|
||||
|
||||
def org_get_shared_users_by_repo(self, org_id, repo_id):
|
||||
return seafserv_threaded_rpc.org_get_shared_users_by_repo(org_id, repo_id)
|
||||
|
||||
seafile_api = SeafileAPI()
|
||||
|
||||
class CcnetAPI(object):
|
||||
|
Reference in New Issue
Block a user