From bc8c15ea6b79e527cde5fafc14be894b48e45ba1 Mon Sep 17 00:00:00 2001 From: ly1217 Date: Fri, 7 Dec 2018 02:42:42 -0800 Subject: [PATCH] Add is_repo_syncable api. --- python/seaserv/api.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/seaserv/api.py b/python/seaserv/api.py index f54e5dfa..fb8b2fe7 100644 --- a/python/seaserv/api.py +++ b/python/seaserv/api.py @@ -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