Skip to content

Commit

Permalink
return all except Rejected when not in strict mode
Browse files Browse the repository at this point in the history
  • Loading branch information
hootlex committed Jun 22, 2016
1 parent 2002116 commit 84b8fda
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ModerationScope.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function apply(Builder $builder, Model $model)
if ($strict) {
$builder->where($model->getQualifiedStatusColumn(), '=', Status::APPROVED);
} else {
$builder->whereIn($model->getStatusColumn(), [Status::APPROVED, Status::PENDING]);
$builder->where($model->getQualifiedStatusColumn(), '!=', Status::REJECTED);
}

$this->extend($builder);
Expand Down

0 comments on commit 84b8fda

Please sign in to comment.