gitlab-org--gitlab-foss/spec/features/projects
Douwe Maan d1c94f034b Merge branch 'explicit-requesters-scope' into 'master'
Exclude requesters from Project#members, Group#members and User#members

## What does this MR do?

It excludes requesters from the `Project#members`, `Group#members` and `User#members` associations, and adds new `Project#requesters` and `Group#requesters` associations.

## Are there points in the code the reviewer needs to double check?

No.

## Why was this MR needed?

Without this, if you call `project.members`, requesters are included in the results! This is at best misleading, and at worst can lead to security issues. By excluding requesters from the `#members` associations, we avoid introducing security inadvertently since you have to call the `#requesters` association explicitly to get requesters.

## What are the relevant issue numbers?

This is something I realized while fixing the security issue #19102.

## Does this MR meet the acceptance criteria?

- [x] I don't think this needs a CHANGELOG since this is an internal change
- Tests
  - [x] Added for this feature/bug
  - [ ] All builds are passing
- [x] Conform by the [style guides](https://gitlab.com/gitlab-org/gitlab-ce/blob/master/CONTRIBUTING.md#style-guides)
- [x] Branch has no merge conflicts with `master` (if you do - rebase it please)
- [x] [Squashed related commits together](https://git-scm.com/book/en/Git-Tools-Rewriting-History#Squashing-Commits)

See merge request !4946
2016-07-01 22:23:26 +00:00
..
badges Tests fix for ref switcher 2016-06-18 21:49:20 +01:00
commit Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
commits Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
files Update tests to check if label is set after picking a template 2016-06-23 12:48:59 -05:00
import_export Merge branch 'master' of gitlab.com:gitlab-org/gitlab-ce into fix/import-export-events 2016-07-01 14:52:38 +02:00
labels Enable Style/EmptyLines cop, remove redundant ones 2016-07-01 21:56:17 +02:00
members Exclude requesters from Project#members, Group#members and User#members 2016-07-01 17:44:46 +02:00
wiki Simplify specs by not over-expecting 2016-05-02 18:34:14 +02:00
developer_views_empty_project_instructions_spec.rb Backport changes from gitlab-org/gitlab-ee!372 2016-05-04 17:05:16 -04:00
shortcuts_spec.rb Move feature specs for shortcuts to valid directory 2016-06-02 11:05:54 +02:00