• Yorick Peterse's avatar
    Refactor User#authorized_groups/projects · e116a356
    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).
    e116a356
user_spec.rb 25.8 KB