fix overly nested if statement
This commit is contained in:
parent
f4372ceeb5
commit
1da54d6538
|
@ -459,10 +459,8 @@ class SiteTreeContentReview extends DataExtension implements PermissionProvider
|
||||||
|
|
||||||
if (!$options) {
|
if (!$options) {
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} elseif ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
||||||
if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
return false;
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$member) {
|
if (!$member) {
|
||||||
|
|
Loading…
Reference in New Issue