• Jan Provaznik's avatar
    Preload group ancestor to decrease N+1 issue · 8b3a02e3
    Jan Provaznik authored
    When checking permissions for a group, it always tries to load
    group ancestor (to check SSO). If we check permissions for related
    groups (for which we are sure that all of them have same root), we
    just preset this root group before checking permission.
    8b3a02e3
group_spec.rb 21.4 KB