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:
authorJames Lopez <james@jameslopez.es>2016-05-13 18:16:24 +0300
committerJames Lopez <james@jameslopez.es>2016-05-13 18:16:24 +0300
commit1ee19f04fd51322606d641ba82e6434d8d5c186f (patch)
treeb81e1e68a180bc81ef956b94704a19f8bd9a8d95 /app/controllers/import
parent89fb5df534c5b7c1ffc147e9274aee9db4f4cbc4 (diff)
fixed permissions
Diffstat (limited to 'app/controllers/import')
-rw-r--r--app/controllers/import/gitlab_projects_controller.rb6
1 files changed, 1 insertions, 5 deletions
diff --git a/app/controllers/import/gitlab_projects_controller.rb b/app/controllers/import/gitlab_projects_controller.rb
index 41b72c33ffe..a4ac55cd2a4 100644
--- a/app/controllers/import/gitlab_projects_controller.rb
+++ b/app/controllers/import/gitlab_projects_controller.rb
@@ -21,15 +21,11 @@ class Import::GitlabProjectsController < Import::BaseController
private
def verify_project_and_namespace_access
- unless namespace_access? && project_access?
+ unless namespace_access?
render_403
end
end
- def project_access?
- can?(current_user, :admin_project, @project)
- end
-
def namespace_access?
current_user.can?(:create_projects, Namespace.find(project_params[:namespace_id]))
end