Skip to content

Commit

Permalink
update implemention to make tests pass
Browse files Browse the repository at this point in the history
  • Loading branch information
battermann committed Jan 30, 2025
1 parent 5abd911 commit 0e1ba28
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -686,9 +686,7 @@ guardTeamAdminAccess luid domain = do
where
validatePaymentStatus :: TeamId -> Sem r ()
validatePaymentStatus tid = do
-- FUTUREWORK: we need a dedicated feature flag for domain registration that is managed by ibis
-- If the team is paying, conference calling will always be enabled
feature <- getFeatureConfigForTeam @_ @ConferenceCallingConfig tid
feature <- getFeatureConfigForTeam @_ @DomainRegistrationConfig tid
when (feature.status /= FeatureStatusEnabled) $
throw EnterpriseLoginSubsystemPaymentRequired

Expand Down

0 comments on commit 0e1ba28

Please sign in to comment.