mirror of
https://github.com/mealie-recipes/mealie.git
synced 2025-12-22 02:05:13 -05:00
feat: Additional Household Permissions (#4158)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user