1
0
mirror of https://github.com/haiwen/seafile-server.git synced 2025-08-31 15:11:08 +00:00

Add ccnet_api for listing child groups and members.

This commit is contained in:
cuihaikuo
2018-05-08 13:55:25 +08:00
parent ffb94306f0
commit c4a6722937

View File

@@ -831,6 +831,9 @@ class CcnetAPI(object):
def get_child_groups(self, group_id):
return ccnet_threaded_rpc.get_child_groups(group_id)
def get_child_groups_recursively(self, group_id):
return ccnet_threaded_rpc.get_child_groups_recursively(group_id)
def get_ancestor_groups(self, group_id):
return ccnet_threaded_rpc.get_ancestor_groups(group_id)
@@ -942,6 +945,12 @@ class CcnetAPI(object):
"""
return ccnet_threaded_rpc.get_group_members(group_id)
def get_structure_members_with_start_group(self, group_id):
"""
Return a list of GroupUser objects, including child groups under @group_id
"""
return ccnet_threaded_rpc.get_structure_members_with_start_group(group_id)
def check_group_staff(self, group_id, username):
"""
Return non-zero value if true, 0 if not true