summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-05 14:37:06 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-04-05 14:37:06 +0200
commitbb9c194c23b8b3ffef30c7fdbe244d4fefc93883 (patch)
tree20979ccf055b372fa8e4f09205673ec8551f5fb2 /app
parentc52b5c92fbd31dc6f76087c43a94243d382d3172 (diff)
downloadgitlab-ce-bb9c194c23b8b3ffef30c7fdbe244d4fefc93883.tar.gz
Respond 404 when unauthorized user imports membersfix/permissions-when-importing-members
Diffstat (limited to 'app')
-rw-r--r--app/controllers/projects/project_members_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/projects/project_members_controller.rb b/app/controllers/projects/project_members_controller.rb
index fd56dfd1260..e457db2f0b7 100644
--- a/app/controllers/projects/project_members_controller.rb
+++ b/app/controllers/projects/project_members_controller.rb
@@ -100,7 +100,7 @@ class Projects::ProjectMembersController < Projects::ApplicationController
status = @project.team.import(source_project, current_user)
notice = status ? "Successfully imported" : "Import failed"
else
- notice = 'Import failed - source project not found!'
+ return render_404
end
redirect_to(namespace_project_project_members_path(project.namespace, project),