Skip to content

Commit

Permalink
Merge pull request #181 from SFDO-Community/feature/traction-381
Browse files Browse the repository at this point in the history
add install check for account sharing settings
  • Loading branch information
Cameron Goodman authored May 26, 2020
2 parents cb54dd0 + 4adf02e commit bcf995b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions cumulusci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -295,6 +295,13 @@ tasks:
sobject: Opportunity
internal_sharing_model: Private
external_sharing_model: Private

check_account_owd:
class_path: tasks.owd_preflight.CheckOWDForObject
options:
sobject: Account
internal_sharing_model: ReadWrite
external_sharing_model: ReadWrite

add_standard_value_set_entries:
options:
Expand Down Expand Up @@ -557,6 +564,9 @@ plans:
- when: "not tasks.check_opportunity_owd()"
action: error
message: "Please set the Internal and External Organization-Wide Defaults to Private for the Opportunity object prior to installing."
- when: "tasks.check_account_owd()"
action: error
message: "Please set the External Organization-Wide Defaults to Read or Private for the Account object prior to installing."
steps:
1:
task: add_standard_value_set_entries
Expand Down

0 comments on commit bcf995b

Please sign in to comment.