Skip to content

Commit

Permalink
[smarcet]
Browse files Browse the repository at this point in the history
* survey test group - fixed logic
  • Loading branch information
smarcet committed Oct 12, 2017
1 parent 81234db commit 23bd5c2
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,9 @@ class Survey extends DataObject implements ISurvey
protected function onBeforeWrite()
{
parent::onBeforeWrite();
// only force IsTest if belongs to Group SurveyTestersGroupSlug
if ($this->CreatedBy()->inGroup(Survey::SurveyTestersGroupSlug)) {
$this->IsTest = true;
} else {
$this->IsTest = false;
}
}

Expand Down

0 comments on commit 23bd5c2

Please sign in to comment.