#100: Fixed wrong permissions.

This commit is contained in:
Emanuel Schuetze 2012-04-30 08:50:35 +02:00
parent eb7672074e
commit b65e21e08f
2 changed files with 2 additions and 3 deletions

View File

@ -317,9 +317,8 @@ class Application(models.Model, SlideMixin):
if user:
try:
user.profile
is_admin = True
except Profile.DoesNotExist:
pass
is_admin = True
# check if user allowed to withdraw an application
if ((self.status == "pub"

View File

@ -469,7 +469,7 @@ class ApplicationDelete(DeleteView):
elif self.object:
formbase += '<input type="hidden" name="application_id" value="%s">' % self.object.id
formbase +='<input type="submit" value="%s" /><input type="button" value="%s"></form>' % (_("Yes"), _("No"))
formbase +='<input type="submit" value="%s" /> <input type="button" value="%s"></form>' % (_("Yes"), _("No"))
messages.warning(request, formbase)