mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 02:10:24 +00:00
Fix user get bug
This commit is contained in:
@@ -36,6 +36,9 @@ class UserManager(object):
|
||||
return self.get(email=email)
|
||||
|
||||
def get(self, email=None, id=None):
|
||||
if not email and not id:
|
||||
raise User.DoesNotExist, 'User matching query does not exits.'
|
||||
|
||||
if email:
|
||||
emailuser = ccnet_threaded_rpc.get_emailuser(email)
|
||||
if id:
|
||||
|
Reference in New Issue
Block a user