mirror of
https://github.com/jumpserver/jumpserver.git
synced 2025-09-29 00:26:56 +00:00
15 lines
279 B
Python
15 lines
279 B
Python
# -*- coding: utf-8 -*-
|
|
#
|
|
|
|
from .utils import get_current_org
|
|
from .models import Organization
|
|
|
|
|
|
def org_processor(request):
|
|
context = {
|
|
'ADMIN_ORGS': Organization.get_user_admin_orgs(request.user),
|
|
'CURRENT_ORG': get_current_org(),
|
|
}
|
|
return context
|
|
|