mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-14 14:22:34 +00:00
Add rpc for searching groups by name
This commit is contained in:
@@ -715,6 +715,12 @@ class CcnetAPI(object):
|
|||||||
"""
|
"""
|
||||||
return ccnet_threaded_rpc.search_emailusers(source, email_patt, start, limit)
|
return ccnet_threaded_rpc.search_emailusers(source, email_patt, start, limit)
|
||||||
|
|
||||||
|
def search_groups(self, group_patt, start, limit):
|
||||||
|
"""
|
||||||
|
Search for groups whose name contains @group_patt.
|
||||||
|
"""
|
||||||
|
return ccnet_threaded_rpc.search_groups(group_patt, start, limit)
|
||||||
|
|
||||||
def search_ldapusers(self, keyword, start, limit):
|
def search_ldapusers(self, keyword, start, limit):
|
||||||
"""
|
"""
|
||||||
Search for users whose name contains @keyword directly from LDAP server.
|
Search for users whose name contains @keyword directly from LDAP server.
|
||||||
|
Reference in New Issue
Block a user