mirror of
https://github.com/cisagov/manage.get.gov.git
synced 2025-08-23 17:51:03 +02:00
column changes in tables
This commit is contained in:
parent
c6357435ed
commit
427f396391
4 changed files with 23 additions and 9 deletions
|
@ -79,6 +79,14 @@ class MemberPermissionDisplay(StrEnum):
|
|||
NONE = "None"
|
||||
|
||||
|
||||
def get_readable_roles(roles):
|
||||
readable_roles = []
|
||||
if roles:
|
||||
readable_roles = sorted(
|
||||
[UserPortfolioRoleChoices.get_user_portfolio_role_label(role) for role in roles]
|
||||
)
|
||||
return readable_roles
|
||||
|
||||
def get_role_display(roles):
|
||||
"""
|
||||
Returns a user-friendly display name for a given list of user roles.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue