summaryrefslogtreecommitdiff
path: root/spec/finders/groups_finder_spec.rb
Commit message (Collapse)AuthorAgeFilesLines
* show only groups an admin is a member of in dashboards/gropsRoger Rüttimann2018-05-011-28/+56
|
* Change all `:empty_project` to `:project`rs-empty_project-defaultRobert Speicher2017-08-021-2/+2
|
* Make the GroupFinder specs more strictToon Claes2017-06-151-17/+35
| | | | | | | Ensure the results match exactly and project authorizations do allow access to sibling groups/projects deeper down. Also apply WHERE scopes before running the UNION, to increase performance.
* Subgroups page should show groups authorized through inheritanceToon Claes2017-06-151-3/+36
| | | | | | | | | | | | When a user is authorized to a group, they are also authorized to see all the ancestor groups and descendant groups. When a user is authorized to a project, they are authorized to see all the ancestor groups too. Closes #32135 See merge request !11764
* Merge branch 'tc-fix-private-subgroups-shown' into 'security' Douwe Maan2017-05-101-11/+46
| | | | | Use GroupsFinder to find subgroups the user has access to See merge request !2096
* Improve group visibility level featureZeger-Jan van de Weg2016-03-181-6/+7
|
* Code fixesFelipe Artur2016-03-171-1/+8
|
* Add permission level to groupsFelipe Artur2016-03-101-0/+25
|
* remove public field from namespace and refactoringnamespace-clean_upValery Sizov2016-01-041-48/+0
|
* Refactoed GroupsFinder into two separate classesYorick Peterse2015-11-181-9/+42
| | | | | | | | | | | | | | | | | In the previous setup the GroupsFinder class had two distinct tasks: 1. Finding the projects user A could see 2. Finding the projects of user A that user B could see Task two was actually handled outside of the GroupsFinder (in the UsersController) by restricting the returned list of groups to those the viewed user was a member of. Moving all this logic into a single finder proved to be far too complex and confusing, hence there are now two finders: * GroupsFinder: for finding groups a user can see * JoinedGroupsFinder: for finding groups that user A is a member of, restricted to either public groups or groups user B can also see.
* Renamed GroupsFinder spec file so the name matchesYorick Peterse2015-11-181-0/+15