mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-09-23 14:08:40 +00:00
bug5827: only counting stats for events listed on homepage (isPublic()==true)
This commit is contained in:
+1
-1
@@ -4748,7 +4748,7 @@ Replicator {
|
||||
public Map<Integer, Statistics> getLocalStatisticsByYear() {
|
||||
final Map<Integer, StatisticsCalculator> calculators = new HashMap<>();
|
||||
getAllEvents().forEach((event) -> {
|
||||
if (getSecurityService().hasCurrentUserReadPermission(event)) {
|
||||
if (getSecurityService().hasCurrentUserReadPermission(event) && event.isPublic()) {
|
||||
final Integer eventYear = EventUtil.getYearOfEvent(event);
|
||||
// The year may be null if the event has no start date set
|
||||
// In this case the event is ignored for the yearly
|
||||
|
||||
Reference in New Issue
Block a user