Add feature flag for team syncing

This commit is contained in:
Joseph Schorr 2017-02-23 13:26:47 -05:00
parent 96b9d6b0cd
commit 04225f2d25
7 changed files with 21 additions and 10 deletions

View file

@ -159,7 +159,8 @@ class Organization(ApiResource):
teams = None
if OrganizationMemberPermission(orgname).can():
teams = model.team.get_teams_within_org(org, bool(authentication.federated_service))
has_syncing = features.TEAM_SYNCING and bool(authentication.federated_service)
teams = model.team.get_teams_within_org(org, has_syncing)
return org_view(org, teams)