Skip to content

Commit bc8c15e

Browse files
ly1217cuihaikuo
authored andcommitted
Add is_repo_syncable api.
1 parent 5c97331 commit bc8c15e

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

python/seaserv/api.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -655,6 +655,12 @@ def check_permission_by_path(self, repo_id, path, user):
655655
"""
656656
return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)
657657

658+
def is_repo_syncable(self, repo_id, user, repo_perm):
659+
"""
660+
Check if the permission of the repo is syncable.
661+
"""
662+
return '{"is_syncable":true}'
663+
658664
# token
659665
def generate_repo_token(self, repo_id, username):
660666
"""Generate a token for sync a repo

0 commit comments

Comments
 (0)