mirror of https://github.com/jumpserver/jumpserver
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
279 B
15 lines
279 B
6 years ago
|
# -*- 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
|
||
|
|