gitlabhq/gitlabhq — pull request #8033 by rbeene (2014-10-14 01:40:24+00:00)
Title: Refactor authorized_groups and authorized_projects

* separate logic for ids for find to private methods (authorized_project_ids/authorized_group_ids)
* leverage private methods in tm_in_authorized_projects to avoid DB hit