From 237d13f57c13deb2e7dbbb15d769b389bf9b0764 Mon Sep 17 00:00:00 2001 From: mariodz95 Date: Mon, 21 Jul 2025 12:39:37 +0200 Subject: [PATCH] fix: allow admin users to delete other household recipes --- mealie/services/recipe/recipe_service.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mealie/services/recipe/recipe_service.py b/mealie/services/recipe/recipe_service.py index 0040ff88a..1b47efa13 100644 --- a/mealie/services/recipe/recipe_service.py +++ b/mealie/services/recipe/recipe_service.py @@ -77,7 +77,7 @@ class RecipeService(RecipeServiceBase): other_household = self.repos.households.get_one(recipe.household_id) if not (other_household and other_household.preferences): return False - if other_household.preferences.lock_recipe_edits_from_other_households: + if not self.user.admin and other_household.preferences.lock_recipe_edits_from_other_households: return False if recipe.settings.locked: return False