Skip to content

Commit

Permalink
Add is_repo_syncable api.
Browse files Browse the repository at this point in the history
  • Loading branch information
ly1217 authored and cuihaikuo committed Dec 24, 2018
1 parent 5c97331 commit bc8c15e
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions python/seaserv/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -655,6 +655,12 @@ def check_permission_by_path(self, 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
def generate_repo_token(self, repo_id, username):
"""Generate a token for sync a repo
Expand Down

0 comments on commit bc8c15e

Please sign in to comment.