Skip to content

Commit

Permalink
Merge pull request #3921 from CartoDB/3917-Instagram_connector_fails_…
Browse files Browse the repository at this point in the history
…in_endpoint_1_1

Fixed feature flag check
  • Loading branch information
juanignaciosl committed Jun 5, 2015
2 parents c0bf700 + 9e24d24 commit 89abc7f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ def initialize(config, user)
@app_key = config.fetch('app_key')
@app_secret = config.fetch('app_secret')

raise ServiceDisabledError.new(DATASOURCE_NAME, @user.username) unless @user.feature_flags.include?('instagram_import')
raise ServiceDisabledError.new(DATASOURCE_NAME, @user.username) unless @user.has_feature_flag?('instagram_import')

service_name = service_name_for_user(DATASOURCE_NAME, @user)
placeholder = CALLBACK_STATE_DATA_PLACEHOLDER.sub('user', @user.username).sub('service', service_name)
Expand Down

0 comments on commit 89abc7f

Please sign in to comment.