1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-09-02 07:54:27 +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) 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 # token
def generate_repo_token(self, repo_id, username): def generate_repo_token(self, repo_id, username):
"""Generate a token for sync a repo """Generate a token for sync a repo