Add feature flag for team syncing
This commit is contained in:
parent
96b9d6b0cd
commit
04225f2d25
7 changed files with 21 additions and 10 deletions
|
@ -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)
|
||||
|
||||
|
|
Reference in a new issue