🐛 Don't logout always-logged-in AdminUser

If ACL is disabled it doesn't make sense to log it out and it's causing
issues further down the line due to different handling.

Fixes #3361
This commit is contained in:
Gina Häußge committed 2019-12-02 12:24:44 +01:00
1 parent 00d0396417
commit 80e8e33283
1 file changed
+1 -1
+1 -1
View File
@@ -107,7 +107,7 @@ class UserManager(GroupChangeListener, object):
return user
def logout_user(self, user):
if user is None or user.is_anonymous:
if user is None or user.is_anonymous or isinstance(user, AdminUser):
return
if isinstance(user, LocalProxy):