From c5078447467a872e110887620d2cde440fe9608f Mon Sep 17 00:00:00 2001 From: Stefane Fermigier Date: Fri, 14 Jun 2013 16:54:50 +0200 Subject: [PATCH] Another workaround. --- abilian/services/preferences/service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/abilian/services/preferences/service.py b/abilian/services/preferences/service.py index f8e6e42d..7cca3222 100644 --- a/abilian/services/preferences/service.py +++ b/abilian/services/preferences/service.py @@ -108,7 +108,7 @@ def index(): """Index redirects to the first accessible panel.""" # Work around unit test failure. FIXME. - if not getattr(current_user, 'id'): + if current_user.is_anonymous(): return "OK" for panel in self.panels: