#100: Fixed wrong permissions.
This commit is contained in:
parent
eb7672074e
commit
b65e21e08f
@ -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"
|
||||
|
@ -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)
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user