mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-19 10:26:17 +00:00
06 change comment
This commit is contained in:
@@ -91,7 +91,7 @@ class ProfileManager(models.Manager):
|
|||||||
return None
|
return None
|
||||||
|
|
||||||
def get_contact_email_by_user(self, username):
|
def get_contact_email_by_user(self, username):
|
||||||
"""Get a user's contact email, use username(login email) if not found.
|
"""Get a user's contact email, return None if not found.
|
||||||
"""
|
"""
|
||||||
p = self.get_profile_by_user(username)
|
p = self.get_profile_by_user(username)
|
||||||
if p and p.contact_email:
|
if p and p.contact_email:
|
||||||
|
Reference in New Issue
Block a user