1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-13 13:50:07 +00:00

Add org user added notification

This commit is contained in:
xiez
2012-07-27 17:54:07 +08:00
parent b517fefde2
commit b1ea10088a
11 changed files with 60 additions and 12 deletions

View File

@@ -154,6 +154,14 @@ def get_org_by_url_prefix(url_prefix):
return org
def get_org_by_id(org_id):
try:
org = ccnet_threaded_rpc.get_org_by_id(org_id)
except SearpcError:
org = None
return org
def get_user_current_org(user, url_prefix):
orgs = get_orgs_by_user(user)
for org in orgs: