Merge branch 'stable-2.16'
* stable-2.16: Update download-commands plugin revision Upgrade google-java-format to 1.7 Change-Id: I6e959cde5b4790b469902245c3a2278883c65cad
This commit is contained in:
@@ -251,8 +251,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()));
|
||||
@@ -260,8 +259,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