Skip to content
  • Yorick Peterse's avatar
    Refactor User#authorized_groups/projects · 0ceb74c37400
    Yorick Peterse authored
    These methods no longer include public groups/projects (that don't
    belong to the actual user) as this is handled by the various finder
    classes now. This also removes the need for passing extra arguments.
    
    Note that memoizing was removed _explicitly_. For whatever reason doing
    so messes up the users controller to a point where it claims a certain
    user does _not_ have access to certain groups/projects when it does have
    access. Existing code shouldn't be affected as these methods are only
    called in ways that they'd run queries anyway (e.g. a combination of
    "any?" and "each" which would run 2 queries regardless of memoizing).
    0ceb74c37400