From 80e8e332839614c1f0dd8dfea408012f12e68e0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Mon, 2 Dec 2019 12:18:59 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20Don't=20logout=20always-logged-i?= =?UTF-8?q?n=20AdminUser?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- src/octoprint/access/users.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/octoprint/access/users.py b/src/octoprint/access/users.py index 077a03539..c9ddaa3b4 100644 --- a/src/octoprint/access/users.py +++ b/src/octoprint/access/users.py @@ -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):