Ephemeral keys for xterm.js. Initial rework of audit logging. All endpoints now return a 401 regardless of presence if not logged in.
This commit is contained in:
1 parent
3e17d6412c
commit
667b02f0c3
28 files changed
+1546
-181
No files matched your search
@@ -1,4 +1,5 @@
|
||||
from django.apps import AppConfig
|
||||
from django.db.models.signals import post_delete, post_save
|
||||
|
||||
|
||||
class AuditConfig(AppConfig):
|
||||
@@ -10,6 +11,10 @@ class AuditConfig(AppConfig):
|
||||
def ready(self) -> None:
|
||||
# Import signal handlers
|
||||
from . import signals # noqa: F401
|
||||
from .matching import clear_event_type_cache
|
||||
from .models import AuditEventType
|
||||
|
||||
post_save.connect(clear_event_type_cache, sender=AuditEventType)
|
||||
post_delete.connect(clear_event_type_cache, sender=AuditEventType)
|
||||
return super().ready()
|
||||
|
||||
|
||||
Reference in new issue
Block a user