fix: login show system org

pull/14674/head
Bai 2024-12-17 19:04:35 +08:00 committed by Bryan
parent a7d4c4ca2a
commit c4066a03fa
1 changed files with 5 additions and 5 deletions

View File

@ -46,7 +46,7 @@ def get_org_from_request(request):
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:
org = Organization.default()