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

Add is_repo_syncable api.

This commit is contained in:
ly1217
2018-12-07 02:42:42 -08:00
committed by cuihaikuo
parent 5c973311d4
commit bc8c15ea6b

View File

@@ -655,6 +655,12 @@ class SeafileAPI(object):
"""
return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)
def is_repo_syncable(self, repo_id, user, repo_perm):
"""
Check if the permission of the repo is syncable.
"""
return '{"is_syncable":true}'
# token
def generate_repo_token(self, repo_id, username):
"""Generate a token for sync a repo