1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 23:19:36 +00:00

Repo can be set 'read-only' or 'normal' status.

Return 'status' in get_repo(s) apis.
This commit is contained in:
cuihaikuo
2019-03-11 14:35:41 +08:00
parent 78bef71a5f
commit 22f096a70a
12 changed files with 202 additions and 63 deletions

View File

@@ -1046,3 +1046,12 @@ class SeafServerThreadedRpcClient(ccnet.RpcClientBase):
@searpc_func("string", ["string", "string", "string", "int"])
def convert_repo_path(repo_id, path, user, is_org):
pass
# repo status
@searpc_func("int", ["string", "int"])
def set_repo_status(repo_id, status):
pass
@searpc_func("int", ["string"])
def get_repo_status(repo_id):
pass