Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
  • Register
  • Sign in
  • G gitlab-ce
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 0
    • Issues 0
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 1
    • Merge requests 1
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Metrics
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • nexedinexedi
  • gitlab-ce
  • Repository
  • gitlab-ce
  • app
  • controllers
  • concerns
  • creates_commit.rb
Find file BlameHistoryPermalink
  • Douwe Maan's avatar
    Merge branch 'jej-23867-use-mr-finder-instead-of-access-check' into 'security' · f23b1cb4
    Douwe Maan authored Nov 29, 2016
    Replace MR access checks with use of MergeRequestsFinder
    
    Split from !2024 to partially solve https://gitlab.com/gitlab-org/gitlab-ce/issues/23867
    
    ⚠ - Potentially untested
    💣 - No test coverage
    🚥 - Test coverage of some sort exists (a test failed when error raised)
    🚦 - Test coverage of return value (a test failed when nil used)
    ✅ - Permissions check tested
    
    - [x] 💣  app/finders/notes_finder.rb:17
    - [x] ⚠  app/views/layouts/nav/_project.html.haml:80 [`.count`]
    - [x] 💣  app/controllers/concerns/creates_commit.rb:84
    - [x] 🚥  app/controllers/projects/commits_controller.rb:24
    - [x] 🚥  app/controllers/projects/compare_controller.rb:56
    - [x] 🚦  app/controllers/projects/discussions_controller.rb:29
    - [x] ✅  app/controllers/projects/todos_controller.rb:27
    - [x] 🚦  app/models/commit.rb:268
    - [x] ✅ lib/gitlab/search_results.rb:71
    
    - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#d1c10892daedb4d4dd3d4b12b6d071091eea83df_267_266 Memoize ` merged_merge_request(current_user)`
    - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#d1c10892daedb4d4dd3d4b12b6d071091eea83df_248_247 Expected side effect for `merged_merge_request!`, consider `skip_authorization: true`.
    - [x] https://dev.gitlab.org/gitlab/gitlabhq/merge_requests/2024/diffs#d1c10892daedb4d4dd3d4b12b6d071091eea83df_269_269 Scary use  of unchecked `merged_merge_request?`
    
    See merge request !2033
    f23b1cb4
GitLab Nexedi Edition | About GitLab | About Nexedi | 沪ICP备2021021310号-2 | 沪ICP备2021021310号-7