diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-07 06:09:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-07 06:09:46 +0300 |
commit | 2e26679b96b5621de70b00bc44f0d3893f1954df (patch) | |
tree | 463eefd402f73e8f03dfade7aeb20e56b5d83892 /app/finders/issuable_finder | |
parent | d4f8f25db649b973f1ae344cb0f8a407862d106b (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/finders/issuable_finder')
-rw-r--r-- | app/finders/issuable_finder/params.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/finders/issuable_finder/params.rb b/app/finders/issuable_finder/params.rb index 120ef364368..adf9f1ca9d8 100644 --- a/app/finders/issuable_finder/params.rb +++ b/app/finders/issuable_finder/params.rb @@ -132,6 +132,8 @@ class IssuableFinder def project strong_memoize(:project) do + next nil unless params[:project_id].present? + project = Project.find(params[:project_id]) project = nil unless Ability.allowed?(current_user, :"read_#{klass.to_ability_name}", project) |