Skip to content

Commit f4c7f30

Browse files
committed
Add feature flag for custom domains
1 parent 3dc8657 commit f4c7f30

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

rails/lib/settings/features.rb

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,12 @@ def subscriptions_enabled?(_user = nil)
1717
true
1818
end
1919

20+
def custom_domains_enabled?(user)
21+
# While we're working on this feature I want to hide it
22+
# from regular users.
23+
user&.is_admin? || Rails.env.test?
24+
end
25+
2026
def redirect_tspot_to_url_enabled?(user)
2127
user&.is_admin? || user&.has_subscription?
2228
end

0 commit comments

Comments
 (0)