diff options
Diffstat (limited to 'public/index.php')
-rw-r--r-- | public/index.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/public/index.php b/public/index.php index b8c2b139..346e7cf7 100644 --- a/public/index.php +++ b/public/index.php @@ -196,6 +196,10 @@ if (isset($_REQUEST['p']) && preg_match("/^[a-z0-9_]*$/i", $_REQUEST['p']) && (i } if (isset($user)) { + $freeloaded_shifts_count = count(ShiftEntries_freeloaded_by_user($user)); + if($freeloaded_shifts_count >= $max_freeloadable_shifts) + $content = error(sprintf(_("You freeloaded %s shifts. Shift signup is locked. Please go to heavens desk to be unlocked again."), $freeloaded_shifts_count), true) . $content; + // Hinweis für ungelesene Nachrichten if ($p != "user_messages") $content = user_unread_messages() . $content; |