#329 fix attribute error for anonymous users in the application view

This commit is contained in:
Oskar Hahn 2012-07-27 11:56:20 +02:00
parent 5a7d670873
commit 9a87db61cc

View File

@ -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"