implement PermissionSets.get_many for getting multiple permission sets by name

This commit is contained in:
dandds
2019-03-14 13:47:57 -04:00
parent ee37a5543a
commit ad56ddc60e
9 changed files with 66 additions and 31 deletions

View File

@@ -72,7 +72,7 @@ def base_portfolio_permission_sets():
def get_all_portfolio_permission_sets():
return [PermissionSets.get(prms["name"]) for prms in PORTFOLIO_PERMISSION_SETS]
return PermissionSets.get_many(PortfolioRoles.PORTFOLIO_PERMISSION_SETS)
class Base(factory.alchemy.SQLAlchemyModelFactory):