From 9a87db61ccf76866d78e070af469ec6d746e6023 Mon Sep 17 00:00:00 2001 From: Oskar Hahn Date: Fri, 27 Jul 2012 11:56:20 +0200 Subject: [PATCH] #329 fix attribute error for anonymous users in the application view --- openslides/application/models.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/openslides/application/models.py b/openslides/application/models.py index 7d7674252..c06b4716e 100644 --- a/openslides/application/models.py +++ b/openslides/application/models.py @@ -322,7 +322,7 @@ class Application(models.Model, SlideMixin): if status not in actions and not force: raise NameError(_('The application status is: \'%(currentstatus)s\'. '\ 'You can not set the status to \'%(newstatus)s\'.') % { - 'currentstatus': self.status, + 'currentstatus': self.status, 'newstatus': status }) @@ -343,6 +343,9 @@ class Application(models.Model, SlideMixin): user.profile except Profile.DoesNotExist: is_admin = True + except AttributeError: + # For the anonymous-user + pass # check if user allowed to withdraw an application if ((self.status == "pub"