diff options
author | manojmj <mmj@gitlab.com> | 2019-09-23 10:42:26 +0300 |
---|---|---|
committer | manojmj <mmj@gitlab.com> | 2019-10-09 10:33:32 +0300 |
commit | 39c99361b655998aaca2114da3e9664c2da27f85 (patch) | |
tree | faaccfaf7dbd8c8625c981589e26d5eb2cc9026d /app/services | |
parent | 7e2b1008547d8ced97a30e96ac6fbc2b7ad32a7f (diff) |
Require maintainer permission to transfer projects
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) |