Initialize clean CSR inventory repository

This commit is contained in:
DenisToxic
2026-09-29 08:43:05 +02:00
commit 059f386c60
107 changed files with 9639 additions and 0 deletions

View File

@@ -0,0 +1,10 @@
from .models import UserProfile
from .permissions import user_role
def navigation_context(request):
role = user_role(request.user) if request.user.is_authenticated else None
return {
"current_role": role,
"current_role_label": dict(UserProfile.Role.choices).get(role, ""),
}