feat: Additional Household Permissions (#4158)

Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
Michael Genson
2024-09-17 10:48:14 -05:00
committed by GitHub
parent b1820f9b23
commit fd0257c1b8
37 changed files with 690 additions and 185 deletions

View File

@@ -5,6 +5,7 @@ from mealie.schema._mealie import MealieModel
class SetPermissions(MealieModel):
user_id: UUID4
can_manage_household: bool = False
can_manage: bool = False
can_invite: bool = False
can_organize: bool = False

View File

@@ -5,6 +5,7 @@ from mealie.schema._mealie import MealieModel
class UpdateHouseholdPreferences(MealieModel):
private_household: bool = True
lock_recipe_edits_from_other_households: bool = True
first_day_of_week: int = 0
# Recipe Defaults

View File

@@ -1,7 +1,12 @@
# This file is auto-generated by gen_schema_exports.py
from .recipe import OpenAIRecipe, OpenAIRecipeIngredient, OpenAIRecipeInstruction, OpenAIRecipeNotes
from .recipe_ingredient import OpenAIIngredient, OpenAIIngredients
__all__ = [
"OpenAIIngredient",
"OpenAIIngredients",
"OpenAIRecipe",
"OpenAIRecipeIngredient",
"OpenAIRecipeInstruction",
"OpenAIRecipeNotes",
]

View File

@@ -106,6 +106,7 @@ class UserBase(MealieModel):
can_invite: bool = False
can_manage: bool = False
can_manage_household: bool = False
can_organize: bool = False
model_config = ConfigDict(
from_attributes=True,