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:
Diffstat (limited to 'app/controllers/projects_controller.rb')
-rw-r--r--app/controllers/projects_controller.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb
index 25fdb5e6f8f..8597c0b2432 100644
--- a/app/controllers/projects_controller.rb
+++ b/app/controllers/projects_controller.rb
@@ -541,9 +541,9 @@ class ProjectsController < Projects::ApplicationController
def check_export_rate_limit!
prefixed_action = "project_#{params[:action]}".to_sym
- project_scope = params[:action] == 'download_export' ? @project : nil
+ group_scope = params[:action] == 'download_export' ? @project.namespace : nil
- check_rate_limit!(prefixed_action, scope: [current_user, project_scope].compact)
+ check_rate_limit!(prefixed_action, scope: [current_user, group_scope].compact)
end
def render_edit