mirror of
https://github.com/mealie-recipes/mealie.git
synced 2026-02-02 05:53:15 -05:00
feat: Additional Household Permissions (#4158)
Co-authored-by: Kuchenpirat <24235032+Kuchenpirat@users.noreply.github.com>
This commit is contained in:
@@ -20,6 +20,11 @@ class OperationChecks:
|
||||
# =========================================
|
||||
# User Permission Checks
|
||||
|
||||
def can_manage_household(self) -> bool:
|
||||
if not self.user.can_manage_household:
|
||||
raise self.ForbiddenException
|
||||
return True
|
||||
|
||||
def can_manage(self) -> bool:
|
||||
if not self.user.can_manage:
|
||||
raise self.ForbiddenException
|
||||
|
||||
Reference in New Issue
Block a user