gitlab-org--gitlab-foss/app
Timothy Andrew 3c88a7869b Implement review comments for !12445 from @godfat and @rymai.
- Use `GlobalPolicy` to authorize the users that a non-authenticated user can
  fetch from `/api/v4/users`. We allow access if the `Gitlab::VisibilityLevel::PUBLIC`
  visibility level is not restricted.

- Further, as before, `/api/v4/users` is only accessible to unauthenticated users if
  the `username` parameter is passed.

- Turn off `authenticate!` for the `/api/v4/users` endpoint by matching on the actual
  route + method, rather than the description.

- Change the type of `current_user` check in `UsersFinder` to be more
  compatible with EE.
2017-06-30 13:06:03 +00:00
..
assets Limit the width of commit & snippet comment sections 2017-06-23 10:45:08 +00:00
controllers Merge branch '28717-additional-metrics-review-branch' into 'master' 2017-06-22 16:35:05 +00:00
finders Implement review comments for !12445 from @godfat and @rymai. 2017-06-30 13:06:03 +00:00
helpers Merge branch 'mk-fix-breadcrumb-order-33938' into 'master' 2017-06-23 18:45:33 +00:00
mailers use common devise layout and use heading style 2017-06-13 22:36:45 +02:00
models Add User#full_private_access? to check if user has Private access 2017-06-23 11:15:35 +02:00
policies Implement review comments for !12445 from @godfat and @rymai. 2017-06-30 13:06:03 +00:00
presenters Display issue state in issue links section of merge request widget 2017-06-09 10:21:56 +02:00
serializers Improve method names and add more specs 2017-06-16 12:03:15 -03:00
services Merge branch '34008-fix-CI_ENVIRONMENT_URL-2' into 'master' 2017-06-21 14:16:08 +00:00
uploaders Fix filename method of GitlabUploader to return always real filename 2017-06-13 00:37:12 +02:00
validators Rebuild the dynamic path before validating it 2017-06-21 16:09:35 +02:00
views Fix interpolation in app/views/profile/show.html/haml 2017-06-24 11:45:42 +01:00
workers Enable Style/DotPosition Rubocop 👮 2017-06-21 13:48:12 +00:00