gitlab-org--gitlab-foss/spec
Robert Speicher 24f353edc4 Merge branch '17249-starred' into 'master'
Restrict starred projects to viewable ones

`User#starred_projects` doesn't perform any visibility checks. This has
a couple of problems:

1. It assumes a user can always view all of their starred projects in
   perpetuity (project not changed to private, access revoked, etc.).
2. It assumes that we'll only ever allow a user to star a project they
   can view. This is currently the case, but bugs happen.

Add `User#viewable_starred_projects` to filter the starred projects by
those the user either has explicit access to, or are public or
internal. Then use that in all places where we list the user's starred
projects.

Closes #17249.

See merge request !4108
2016-05-11 12:49:29 +00:00
..
config
controllers Merge remote-tracking branch 'dev/master' into 'master' 2016-05-02 19:58:54 -04:00
factories Remove the annotate gem and delete old annotations 2016-05-09 18:00:28 +02:00
features Fix an issue when filtering merge requests with more than one label 2016-05-10 19:07:46 +02:00
finders
fixtures Update SVG sanitizer to conform to SVG 1.1 2016-05-06 23:20:24 -07:00
helpers Merge branch 'rs-backport-ee-372' into 'master' 2016-05-09 14:48:48 +00:00
initializers Add tests for setting trusted_proxies 2016-05-04 15:49:39 -07:00
javascripts Fix build notification on merge request page change even if the build status didn't change 2016-05-08 21:41:09 +02:00
lib Only generate repository push email once 2016-05-11 09:16:01 +01:00
mailers Only generate repository push email once 2016-05-11 09:16:01 +01:00
models Tidy up user project specs 2016-05-11 09:03:23 +01:00
requests Merge branch '17249-starred' into 'master' 2016-05-11 12:49:29 +00:00
routing
services Merge branch 'fix/todos-for-private-group-mentions' into 'master' 2016-05-09 18:31:41 +00:00
support Ensure URL in all Service subclasses are valid 2016-04-25 15:28:24 -04:00
tasks/gitlab
views
workers Only generate repository push email once 2016-05-11 09:16:01 +01:00
factories_spec.rb
rails_helper.rb
spec_helper.rb Update rspec-rails from 3.3.3 to 3.4.2. 2016-05-01 13:44:50 -06:00
teaspoon_env.rb