mirror of https://github.com/jumpserver/jumpserver
[Update] 修改组织获取优先级
parent
9bf5d6dd45
commit
dffd05cd20
|
@ -11,10 +11,9 @@ from .models import Organization
|
|||
|
||||
|
||||
def get_org_from_request(request):
|
||||
oid = request.session.get("oid")
|
||||
oid = request.META.get("HTTP_X_JMS_ORG")
|
||||
if not oid:
|
||||
oid = request.META.get("HTTP_X_JMS_ORG")
|
||||
|
||||
oid = request.session.get("oid")
|
||||
request_params_oid = request.GET.get("oid")
|
||||
if request_params_oid:
|
||||
oid = request.GET.get("oid")
|
||||
|
|
Loading…
Reference in New Issue