Skip to content
Snippets Groups Projects
  1. Oct 12, 2017
  2. Oct 05, 2017
  3. Sep 29, 2017
  4. Sep 28, 2017
  5. Sep 07, 2017
  6. Sep 06, 2017
  7. Sep 05, 2017
  8. Aug 30, 2017
  9. Aug 28, 2017
  10. Aug 16, 2017
  11. Aug 11, 2017
  12. Aug 10, 2017
  13. Aug 02, 2017
  14. Aug 01, 2017
  15. Jul 26, 2017
  16. Jul 21, 2017
  17. Jul 19, 2017
  18. Jul 06, 2017
  19. Jul 04, 2017
  20. Jun 30, 2017
    • Timothy Andrew's avatar
      Implement review comments for !12445 from @godfat and @rymai. · 3c88a786
      Timothy Andrew authored
      - 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.
      3c88a786
  21. Jun 28, 2017
  22. Jun 26, 2017
    • Timothy Andrew's avatar
      Allow unauthenticated access to the `/api/v4/users` API. · 20f679d6
      Timothy Andrew authored
      - The issue filtering frontend code needs access to this API for non-logged-in
        users + public projects. It uses the API to fetch information for a user by
        username.
      
      - We don't authenticate this API anymore, but instead - if the `current_user` is
        not present:
      
        - Verify that the `username` parameter has been passed. This disallows an
          unauthenticated user from grabbing a list of all users on the instance. The
          `UsersFinder` class performs an exact match on the `username`, so we are
          guaranteed to get 0 or 1 users.
        - Verify that the resulting user (if any) is accessible to be viewed publicly
          by calling `can?(current_user, :read_user, user)`
      20f679d6
  23. Jun 02, 2017
  24. Jun 01, 2017
  25. May 30, 2017
  26. May 10, 2017
Loading