diff options
author | Igor Scheller <igor.scheller@igorshp.de> | 2019-06-04 19:26:50 +0200 |
---|---|---|
committer | msquare <msquare@notrademark.de> | 2019-06-04 21:24:59 +0200 |
commit | 0458ce95097f97a3469db48bd6f655c8dd3d4674 (patch) | |
tree | fa58b2c11d542ed31696d9fa4786dbd9fce54e9e /includes/controller/shift_entries_controller.php | |
parent | 142871f852c717319608de43d954180f17e5ed66 (diff) |
Added more error messages
Diffstat (limited to 'includes/controller/shift_entries_controller.php')
-rw-r--r-- | includes/controller/shift_entries_controller.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/includes/controller/shift_entries_controller.php b/includes/controller/shift_entries_controller.php index 3c6c3a7c..5547c183 100644 --- a/includes/controller/shift_entries_controller.php +++ b/includes/controller/shift_entries_controller.php @@ -212,6 +212,8 @@ function shift_entry_error_message(ShiftSignupState $shift_signup_state) error(__('This shift ended already.')); } elseif ($shift_signup_state->getState() == ShiftSignupState::NOT_ARRIVED) { error(__('You are not marked as arrived.')); + } elseif ($shift_signup_state->getState() == ShiftSignupState::NOT_YET) { + error(__('You are not allowed to sign up yet.')); } elseif ($shift_signup_state->getState() == ShiftSignupState::SIGNED_UP) { error(__('You are signed up for this shift.')); } |