equal
deleted
inserted
replaced
1113 |
1113 |
1114 self.checkIsUser(django_args) |
1114 self.checkIsUser(django_args) |
1115 |
1115 |
1116 application = app_logic.getFromKeyFieldsOr404(django_args) |
1116 application = app_logic.getFromKeyFieldsOr404(django_args) |
1117 applicant = application.applicant.key() |
1117 applicant = application.applicant.key() |
1118 backup_admin = application.backup_admin.key() |
1118 backup_admin = application.backup_admin |
|
1119 backup_admin = backup_admin.key() if backup_admin else None |
1119 user = self.user.key() |
1120 user = self.user.key() |
1120 |
1121 |
1121 # check if the application is accepted and the applicant is the current user |
1122 # check if the application is accepted and the applicant is the current user |
1122 if application.status == 'accepted' and (applicant == user or |
1123 if application.status == 'accepted' and (applicant == user or |
1123 backup_admin == user): |
1124 backup_admin == user): |