mirror of
https://github.com/jumpserver/jumpserver.git
synced 2026-01-29 21:51:31 +00:00
Tmp org (#1579)
* [Update] 添加org api, 升级到django 2.0 * [Update] fix some bug * [Update] 修改一些bug
This commit is contained in:
@@ -16,6 +16,8 @@ _thread_locals = local()
|
||||
|
||||
def get_org_from_request(request):
|
||||
oid = request.session.get("oid")
|
||||
if not oid:
|
||||
oid = request.META.get("HTTP_X_JMS_ORG")
|
||||
org = Organization.get_instance(oid)
|
||||
return org
|
||||
|
||||
|
||||
Reference in New Issue
Block a user