Move epics_readable_by_user method to Ability model
What does this MR do and why?
This MR addresses the second to-do in the follow-up issue #354493.
This refactoring moves the method epics_readable_by_user
from Epic
to Ability
model and fixes N+1 queries previously executed by this authorization.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Edited by Eugenia Grieff