diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 12:25:06 +0200 |
---|---|---|
committer | Igor Scheller <igor.scheller@igorshp.de> | 2017-08-31 12:32:08 +0200 |
commit | 0a20883aa862779b48fd2a297456c2db04cffb95 (patch) | |
tree | 310600aaa23404f0cd7d3e198bacdbc93645da32 /includes/model/Shifts_model.php | |
parent | 2bd127c011846aad69731d1d63535a3d4f100af0 (diff) |
Reimplementation of 2840bb619 (signup requires arrival), closes #330
Diffstat (limited to 'includes/model/Shifts_model.php')
-rw-r--r-- | includes/model/Shifts_model.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/includes/model/Shifts_model.php b/includes/model/Shifts_model.php index 1589939d..03f8341f 100644 --- a/includes/model/Shifts_model.php +++ b/includes/model/Shifts_model.php @@ -245,6 +245,10 @@ function Shift_signup_allowed_angel( ) { $free_entries = Shift_free_entries($needed_angeltype, $shift_entries); + if (config('signup_requires_arrival') && !$user['Gekommen']) { + return new ShiftSignupState(ShiftSignupState::SHIFT_ENDED, $free_entries); + } + if ($user_shifts == null) { $user_shifts = Shifts_by_user($user); } |