diff options
author | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-10-29 18:58:19 +0300 |
---|---|---|
committer | GitLab Release Tools Bot <robert+release-tools@gitlab.com> | 2019-10-29 18:58:19 +0300 |
commit | 077f2c6c432342ce4d011583e86d671b2b326a56 (patch) | |
tree | c483d253d30858ed467fcf7e17cd2e1d1750881b /app/services | |
parent | cd284fef90c6c4980ecfd5e06c6344dbe7ca8b95 (diff) | |
parent | 39c99361b655998aaca2114da3e9664c2da27f85 (diff) |
Merge branch 'security-developer-transfer-project' into 'master'
Require Maintainer permission on group where project is transferred to
See merge request gitlab/gitlabhq!3420
Diffstat (limited to 'app/services')
-rw-r--r-- | app/services/projects/transfer_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/projects/transfer_service.rb b/app/services/projects/transfer_service.rb index 4b3aca58dd7..525fc18b312 100644 --- a/app/services/projects/transfer_service.rb +++ b/app/services/projects/transfer_service.rb @@ -98,7 +98,7 @@ module Projects @new_namespace && can?(current_user, :change_namespace, project) && @new_namespace.id != project.namespace_id && - current_user.can?(:create_projects, @new_namespace) + current_user.can?(:transfer_projects, @new_namespace) end def update_namespace_and_visibility(to_namespace) |