コード例 #1
0
ファイル: api.py プロジェクト: jason88888/seafile-server
 def check_permission_by_path(self, repo_id, path, user):
     """
     Check both repo share permission and sub-folder access permissions.
     This function should be used when updating file/folder in a repo.
     In CE, this function is equivalent to check_permission.
     Return: 'r', 'rw', or None
     """
     return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)
コード例 #2
0
ファイル: api.py プロジェクト: airbai/seafile
 def check_permission_by_path(self, repo_id, path, user):
     """
     Check both repo share permission and sub-folder access permissions.
     This function should be used when updating file/folder in a repo.
     In CE, this function is equivalent to check_permission.
     Return: 'r', 'rw', or None
     """
     return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)
コード例 #3
0
 def check_permission_by_path(self, repo_id, path, user):
     return seafserv_threaded_rpc.check_permission_by_path(
         repo_id, path, user)
コード例 #4
0
ファイル: api.py プロジェクト: miurahr/seafile
 def check_permission_by_path(self, repo_id, path, user):
     return seafserv_threaded_rpc.check_permission_by_path(repo_id, path, user)