.verify(ErrorType.UNABLE_MODIFY_SHARABLE_RESOURCE, Suppliers.formattedSupplier(
"User '{}' isn't owner of resource and resource isn't shared to project '{}'.", userModifier, projectName));
}</BUG>
public static boolean isPossibleToReadResource(Acl acl, String userModifier, String projectName) {
if (!acl.getOwnerUserId().equalsIgnoreCase(userModifier))
<BUG>if (!acl.getEntries().stream().filter(Preconditions.hasACLPermission(projectName, AclPermissions.READ)).findFirst().isPresent())
</BUG>
return false;
return true;
}

.verify(ErrorType.UNABLE_MODIFY_SHARABLE_RESOURCE, Suppliers.formattedSupplier(
"User '{}' isn't owner of resource and resource isn't shared to project '{}'.", userModifier,
projectName));
}
public static boolean isPossibleToReadResource(Acl acl, String userModifier, String projectName) {
if (!acl.getOwnerUserId().equalsIgnoreCase(userModifier))
if (acl.getEntries().stream().noneMatch(Preconditions.hasACLPermission(projectName, AclPermissions.READ)))
return false;
return true;
}
