Skip to content

Commit

Permalink
add install check for account sharing settings
Browse files Browse the repository at this point in the history
  • Loading branch information
camerongoodman committed May 26, 2020
1 parent cb54dd0 commit 4adf02e
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 4adf02e

Please sign in to comment.