2
0
Fork 0
This commit is contained in:
Andreas (@xAndy) Zimmermann 2022-05-20 20:56:45 +02:00
parent 10e642c4a3
commit c94074ccd7
1 changed files with 1 additions and 1 deletions

View File

@ -130,7 +130,7 @@ class ShiftRegistration(models.Model):
def can_cancel(self):
if self.state != self.RegState.REGISTERED:
return false
return False
return self.shift.start_at > (
timezone.now()
+ global_preferences_registry.manager()["helper__min_cancel_time"]