diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-05 14:37:06 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2016-04-05 14:37:06 +0200 |
commit | bb9c194c23b8b3ffef30c7fdbe244d4fefc93883 (patch) | |
tree | 20979ccf055b372fa8e4f09205673ec8551f5fb2 /app | |
parent | c52b5c92fbd31dc6f76087c43a94243d382d3172 (diff) | |
download | gitlab-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.rb | 2 |
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), |