feat(submissions): scoped submissions per user/matchs, sync from polylan

This commit is contained in:
2026-09-16 13:12:22 +02:00
parent 85e67599af
commit fabf06e6d4
35 changed files with 1008 additions and 92 deletions
+2 -4
View File
@@ -7,6 +7,7 @@ import requests
from django.conf import settings
from django.contrib.auth import get_user_model
from django.contrib.auth.backends import BaseBackend
import sentry_sdk
class SimpleCASBackend(BaseBackend):
@@ -23,9 +24,6 @@ class SimpleCASBackend(BaseBackend):
if not cas_user_id:
return None
print(f"CAS User ID: {cas_user_id}")
print(f"CAS Attributes: {attributes}")
User = get_user_model()
# Try to find user by CAS user ID first, then by username
@@ -80,7 +78,7 @@ class SimpleCASBackend(BaseBackend):
return None, None
except Exception as e:
print(f"CAS validation error: {e}")
sentry_sdk.capture_exception(e)
return None, None
def get_user(self, user_id):