From 9ecc40adebf9d367186eb06b57dfb210588e215b Mon Sep 17 00:00:00 2001 From: Benjamin Graillot Date: Tue, 23 Jul 2019 02:11:24 +0200 Subject: [PATCH] [note_kfet] Disable Guardian AnonymousUser --- note_kfet/settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/note_kfet/settings.py b/note_kfet/settings.py index 65a69983..bef2cf02 100644 --- a/note_kfet/settings.py +++ b/note_kfet/settings.py @@ -121,6 +121,8 @@ AUTHENTICATION_BACKENDS = ( 'guardian.backends.ObjectPermissionBackend', ) +ANONYMOUS_USER_NAME = None # Disable guardian anonymous user + GUARDIAN_GET_CONTENT_TYPE = 'polymorphic.contrib.guardian.get_polymorphic_base_content_type' # Internationalization