Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
tractorcow committed Feb 5, 2020
1 parent 2217a6a commit ecaf135
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Extension/FluentMemberExtension.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,8 @@ public function updateGroups(Member_GroupSet &$groups)
return true;
}

// Enabled if the current locale is selected
if (in_array($locale->getLocaleEditPermission(), $localePermissions)) {
return true;
}

// Group disabled
return false;
// Enabled if the current locale is selected, or disabled
return in_array($locale->getLocaleEditPermission(), $localePermissions);
});

// Adjust group filter
Expand Down

0 comments on commit ecaf135

Please sign in to comment.