Merge branch 'main' into backup/3004-org-permission-emails

This commit is contained in:
David Kennedy 2025-02-06 14:03:19 -05:00
commit 7718d6882a
No known key found for this signature in database
GPG key ID: 6528A5386E66B96B
23 changed files with 208 additions and 265 deletions

View file

@ -42,10 +42,6 @@ class UserPortfolioPermissionChoices(models.TextChoices):
VIEW_PORTFOLIO = "view_portfolio", "View organization"
EDIT_PORTFOLIO = "edit_portfolio", "Edit organization"
# Domain: field specific permissions
VIEW_SUBORGANIZATION = "view_suborganization", "View suborganization"
EDIT_SUBORGANIZATION = "edit_suborganization", "Edit suborganization"
@classmethod
def get_user_portfolio_permission_label(cls, user_portfolio_permission):
return cls(user_portfolio_permission).label if user_portfolio_permission else None