latest changes

This commit is contained in:
Joren de Graaf
2026-10-22 10:32:41 +02:00
parent 5799b542c8
commit 5b986134be
63 changed files with 2412 additions and 77 deletions
+8
View File
@@ -0,0 +1,8 @@
"""Server-side restrictions for the public demonstration account."""
from .models import UserSettings
def is_demo_user(user):
return bool(getattr(user, 'is_authenticated', False) and
UserSettings.objects.filter(user_id=user.pk, is_demo=True).exists())