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

Add parameter 'in_structure' for ccnet_api check_group_staff().

This commit is contained in:
cuihaikuo 2018-06-21 11:12:45 +08:00
parent a73de86a33
commit c96bb50c40

View File

@ -960,11 +960,11 @@ class CcnetAPI(object):
""" """
return ccnet_threaded_rpc.get_members_with_prefix(group_id, prefix) return ccnet_threaded_rpc.get_members_with_prefix(group_id, prefix)
def check_group_staff(self, group_id, username): def check_group_staff(self, group_id, username, in_structure=False):
""" """
Return non-zero value if true, 0 if not true Return non-zero value if true, 0 if not true
""" """
return ccnet_threaded_rpc.check_group_staff(group_id, username) return ccnet_threaded_rpc.check_group_staff(group_id, username, 1 if in_structure else 0)
def remove_group_user(self, username): def remove_group_user(self, username):
return ccnet_threaded_rpc.remove_group_user(username) return ccnet_threaded_rpc.remove_group_user(username)