Allow users to withdraw applications

This commit is contained in:
2010-09-01 09:11:47 +01:00
parent db81fe9cb4
commit 7aa7e87cd1
2 changed files with 3 additions and 1 deletions

View File

@@ -171,7 +171,7 @@ def update_application(request, applicationid, status):
app = get_object_or_404(Application, id=applicationid)
# Allow admins and users that are setting the application as awaiting review
if hrstaff or (app.user == request.user and int(status) == APPLICATION_STATUS_AWAITINGREVIEW):
if hrstaff or app.user == request.user:
if not app.status == status:
app.status = status
app.save(user=request.user)