Merge branch 'stable-2.15' into stable-2.16
* stable-2.15: Upgrade google-java-format to 1.7 Change-Id: Ia7383822ef59fb60bb5559956a065ae46b2e4f4a
This commit is contained in:
@@ -252,8 +252,7 @@ public class DefaultPermissionBackend extends PermissionBackend {
|
||||
private boolean allow(Collection<PermissionRule> rules) {
|
||||
return user.getEffectiveGroups()
|
||||
.containsAnyOf(
|
||||
rules
|
||||
.stream()
|
||||
rules.stream()
|
||||
.filter(r -> r.getAction() == Action.ALLOW)
|
||||
.map(r -> r.getGroup().getUUID())
|
||||
.collect(toSet()));
|
||||
@@ -261,8 +260,7 @@ public class DefaultPermissionBackend extends PermissionBackend {
|
||||
|
||||
private boolean notDenied(Collection<PermissionRule> rules) {
|
||||
Set<AccountGroup.UUID> denied =
|
||||
rules
|
||||
.stream()
|
||||
rules.stream()
|
||||
.filter(r -> r.getAction() != Action.ALLOW)
|
||||
.map(r -> r.getGroup().getUUID())
|
||||
.collect(toSet());
|
||||
|
Reference in New Issue
Block a user