Skip to content

Commit

Permalink
ignore pinboard feature switch for all envs except prod (still needs …
Browse files Browse the repository at this point in the history
…pinboard permission though)
  • Loading branch information
twrichards committed Oct 17, 2024
1 parent fd2b036 commit 6edc7f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/controllers/V2App.scala
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ class V2App(isDev: Boolean, val acl: Acl, dynamoClient: DynamoDbClient, db: Edit
Json.toJson(conf).toString(),
isDev,
maybePinboardUrl = pinboardPermission match {
case AccessGranted if maybePinboardFeatureSwitch.exists(_.enabled) =>
case AccessGranted if config.environment.stage != "prod" || maybePinboardFeatureSwitch.exists(_.enabled) =>
Some(s"https://pinboard.${config.environment.correspondingToolsDomainSuffix}/pinboard.loader.js")
case _ =>
None
Expand Down

0 comments on commit 6edc7f1

Please sign in to comment.