mirror of
https://github.com/haiwen/seafile-server.git
synced 2025-09-01 07:26:37 +00:00
Add update emailuser id RPC (#349)
* Add update emailuser id RPC * Add test shareing and group relationship when update user id
This commit is contained in:
@@ -872,6 +872,11 @@ class SeafServerThreadedRpcClient(NamedPipeClient):
|
||||
@searpc_func("objlist", ["string", "string"])
|
||||
def get_emailusers_in_list(self, source, user_list):
|
||||
pass
|
||||
|
||||
@searpc_func("int", ["string", "string"])
|
||||
def update_emailuser_id (self, old_email, new_email):
|
||||
pass
|
||||
|
||||
#group management
|
||||
@searpc_func("int", ["string", "string", "string", "int"])
|
||||
def create_group(self, group_name, user_name, gtype, parent_group_id):
|
||||
|
@@ -983,6 +983,9 @@ class CcnetAPI(object):
|
||||
"""
|
||||
return ccnet_threaded_rpc.get_emailusers_in_list(source, user_list)
|
||||
|
||||
def update_emailuser_id (self, old_email, new_email):
|
||||
return ccnet_threaded_rpc.update_emailuser_id (old_email, new_email)
|
||||
|
||||
# group management
|
||||
def create_group(self, group_name, user_name, gtype=None, parent_group_id=0):
|
||||
"""
|
||||
|
Reference in New Issue
Block a user