Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • heptapod heptapod
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 161
    • Issues 161
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 0
    • Merge requests 0
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • heptapod
  • heptapodheptapod
  • Repository

Switch branch/tag
  • heptapod
  • app
  • models
  • project.rb
Find file BlameHistoryPermalink
  • Alejandro Rodríguez's avatar
    Refactor user authorization check for a single project to avoid querying all user projects · 682524229b29
    Alejandro Rodríguez authored Jul 07, 2016
    Currently, even when searching for all authorized issues of *one* project, we run the
    `Users#authorized_projects` query (which can be rather slow). This update checks if
    we are handling issues of just one project and does the authorization check locally.
    It does have the downside of basically repeating the logic of `Users#authorized_projects`
    on `Project#authorized_for_user`.
    682524229b29

Replace project.rb

Attach a file by drag & drop or click to upload


Cancel
GitLab will create a branch in your fork and start a merge request.