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:
@@ -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:
|
||||
|
Reference in New Issue
Block a user