Files
workdock-platform/backend/workflows/context_processors.py
2026-03-26 14:43:10 +01:00

10 lines
302 B
Python

from .branding import get_branding_context, get_trial_context
from .roles import template_role_context
def role_context(request):
context = template_role_context(getattr(request, 'user', None))
context.update(get_branding_context())
context.update(get_trial_context())
return context