X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/1392e63272e24a139cde80211bd0083221f3b455..2ab3d56102661f31cc41ef3edca5d72f904a3070:/app/helpers/issues_helper.rb diff --git a/app/helpers/issues_helper.rb b/app/helpers/issues_helper.rb index 4dc1637de..f9a84ba7d 100644 --- a/app/helpers/issues_helper.rb +++ b/app/helpers/issues_helper.rb @@ -26,7 +26,7 @@ module IssuesHelper end def open_issues_count - count = Issue.open.limit(100).size + count = Issue.visible_to(current_user).open.limit(100).size if count > 99 content_tag(:span, "99+", :class => "count-number") elsif count > 0