From 142871f852c717319608de43d954180f17e5ed66 Mon Sep 17 00:00:00 2001 From: MichiK Date: Sun, 3 Dec 2017 04:05:02 +0100 Subject: Add a config option for maximum signup in advance We now have `signup_advance_hours` in the configuration that only allows signup for shifts so many hours in the future. A notice is displayed in the shift view for shifts in the far future, together with an info notice on when signup for that shift will be possible. In addition, we now have a new shift state `NOT_YET` for this purpose so we do not have to abuse `SHIFT_ENDED` anymore for `signup_requires_arrival` as well. --- config/config.default.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'config') diff --git a/config/config.default.php b/config/config.default.php index 38d88acc..693b0d19 100644 --- a/config/config.default.php +++ b/config/config.default.php @@ -88,6 +88,10 @@ return [ // Whether newly-registered user should automatically be marked as arrived 'autoarrive' => false, + // Only allow shift signup this number of hours in advance + // Setting this to 0 disables the feature + 'signup_advance_hours' => 0, + // Number of hours that an angel has to sign out own shifts 'last_unsubscribe' => 3, -- cgit v1.2.3-54-g00ecf