mirror of https://github.com/jumpserver/jumpserver
fix: login show system org
parent
a7d4c4ca2a
commit
c4066a03fa
|
@ -46,7 +46,7 @@ def get_org_from_request(request):
|
||||||
|
|
||||||
if not org and request.user.is_authenticated:
|
if not org and request.user.is_authenticated:
|
||||||
# 企业版用户优先从自己有权限的组织中获取
|
# 企业版用户优先从自己有权限的组织中获取
|
||||||
org = request.user.orgs.first()
|
org = request.user.orgs.exclude(id=Organization.SYSTEM_ID).first()
|
||||||
|
|
||||||
if not org:
|
if not org:
|
||||||
org = Organization.default()
|
org = Organization.default()
|
||||||
|
|
Loading…
Reference in New Issue