Fix meal plan start page requirements

This commit is contained in:
Lewis Juggins 2019-10-10 17:47:28 +01:00
parent 744fd03633
commit 3fa6008d6d

View File

@ -85,9 +85,9 @@ class SystemController extends BaseController
if ($entryPage === 'calendar' && constant('GROCY_FEATURE_FLAG_CALENDAR')) {
return '/calendar';
}
// Meal Plan
if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_RECIPES')) {
if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_RECIPES') && constant('GROCY_FEATURE_FLAG_CALENDAR')) {
return '/mealplan';
}