Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Thomas <nick@gitlab.com>2017-07-21 20:45:12 +0300
committerNick Thomas <nick@gitlab.com>2017-07-21 20:45:12 +0300
commite4391c7190fcebd37e49db447b22b1081dca9741 (patch)
tree6ae62e5833e6a04128ff39ae11d5cab31db706dc /app/controllers/projects/application_controller.rb
parent2209426f7ba1a0c40b09e5b67ac3b48fd15f7b99 (diff)
Backport changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/2328
Diffstat (limited to 'app/controllers/projects/application_controller.rb')
-rw-r--r--app/controllers/projects/application_controller.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/controllers/projects/application_controller.rb b/app/controllers/projects/application_controller.rb
index 95de3a44641..221e01b415a 100644
--- a/app/controllers/projects/application_controller.rb
+++ b/app/controllers/projects/application_controller.rb
@@ -22,6 +22,7 @@ class Projects::ApplicationController < ApplicationController
def project
return @project if @project
+ return nil unless params[:project_id] || params[:id]
path = File.join(params[:namespace_id], params[:project_id] || params[:id])
auth_proc = ->(project) { !project.pending_delete? }