Skip to content

Commit

Permalink
Extend user_may_apply slightly.
Browse files Browse the repository at this point in the history
Make sure than when users recieve the reminder email, they are always
able to reapply!
  • Loading branch information
amanning9 committed Jul 1, 2024
1 parent c9448a0 commit b7e1092
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion jasmin_services/models/role.py
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ def _user_may_apply_query(self, user):
Q(grant__revoked=False) # Valid grants are not revoked.
& Q(grant__next_grant__isnull=True) # filter only 'active' grants
& Q(
grant__expires__gt=(django.utils.timezone.localdate() + dt.timedelta(days=60))
grant__expires__gt=(django.utils.timezone.localdate() + dt.timedelta(days=65))
) # Only include grants which don't expire in the next 60 days.
)
# And any pending requests.
Expand Down

0 comments on commit b7e1092

Please sign in to comment.