🐛 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:
1 parent
00d0396417
commit
80e8e33283
1 file changed
+1
-1
@@ -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):
|
||||
|
||||
Reference in new issue
Block a user