mirror of
https://github.com/silverstripe/silverstripe-contentreview
synced 2024-10-22 17:05:47 +02:00
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) {
|
||||
return false;
|
||||
} else {
|
||||
if ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
||||
return false;
|
||||
}
|
||||
} elseif ($options->OwnerGroups()->count() == 0 && $options->OwnerUsers()->count() == 0) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!$member) {
|
||||
|
Loading…
Reference in New Issue
Block a user