mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-02 07:54:27 +00:00
Add ccnet_api for listing child groups and members.
This commit is contained in:
@@ -831,6 +831,9 @@ class CcnetAPI(object):
|
|||||||
def get_child_groups(self, group_id):
|
def get_child_groups(self, group_id):
|
||||||
return ccnet_threaded_rpc.get_child_groups(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):
|
def get_ancestor_groups(self, group_id):
|
||||||
return ccnet_threaded_rpc.get_ancestor_groups(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)
|
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):
|
def check_group_staff(self, group_id, username):
|
||||||
"""
|
"""
|
||||||
Return non-zero value if true, 0 if not true
|
Return non-zero value if true, 0 if not true
|
||||||
|
Reference in New Issue
Block a user