Fix sidebar issue count
What this mr does:
-
When caching issue counts, cache two different counts: the total including confidential issues, and the total excluding confidential issues.
-
If the user can see all confidential issues on that project, use the confidential issue count. If they can't, use the count excluding confidential issues.
- This does mean that the count will still be wrong for people with guest access who have created or are assigned to confidential issues.
-
No changes needed for merge requests.
closes #38418 (closed)
Edited by Felipe Cardozo