feat: Enhance security by adding @login_required to multiple views and replacing print statements with logger.debug

Co-authored-by: Copilot <copilot@github.com>
This commit is contained in:
Ross
2026-04-30 21:35:08 +01:00
co-authored by Copilot
parent 5d37cad48d
commit 2aff9516ac
13 changed files with 389 additions and 113 deletions
-1
View File
@@ -24,7 +24,6 @@ def check_user_in_group(*groups: Group):
def decorator(function):
@wraps(function)
def wrapper(request, *args, **kwargs):
print(request.user)
if request.user.is_superuser or request.user.groups.filter(
name__in=[group.name for group in groups]
).exists():