1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-08 18:30:53 +00:00

Add discuss module to public group, do not show email in user profile

This commit is contained in:
plt
2013-03-30 10:26:49 +08:00
parent ab35c26728
commit 16570c746e
9 changed files with 110 additions and 81 deletions

View File

@@ -14,7 +14,7 @@ from registration import signals
from seaserv import ccnet_threaded_rpc, unset_repo_passwd, is_passwd_set
from profile.models import Profile
from seahub.utils import get_user_repos
UNUSABLE_PASSWORD = '!' # This will never be a valid hash
@@ -155,6 +155,7 @@ class User(object):
"""
Remove all repo decryption passwords stored on server.
"""
from seahub.utils import get_user_repos
owned_repos, shared_repos, groups_repos, public_repos = get_user_repos(self)
def has_repo(repos, repo):