mirror of
https://github.com/hay-kot/mealie.git
synced 2025-08-22 14:33:33 -07:00
fix: allow admin users to delete other household recipes
This commit is contained in:
parent
4744e6371a
commit
237d13f57c
1 changed files with 1 additions and 1 deletions
|
@ -77,7 +77,7 @@ class RecipeService(RecipeServiceBase):
|
||||||
other_household = self.repos.households.get_one(recipe.household_id)
|
other_household = self.repos.households.get_one(recipe.household_id)
|
||||||
if not (other_household and other_household.preferences):
|
if not (other_household and other_household.preferences):
|
||||||
return False
|
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
|
return False
|
||||||
if recipe.settings.locked:
|
if recipe.settings.locked:
|
||||||
return False
|
return False
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue