diff options
| author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-04 22:06:55 +0200 |
|---|---|---|
| committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2012-12-04 22:06:55 +0200 |
| commit | 2a1c5cdf99e943950af7630742299222a591827c (patch) | |
| tree | 556ab7bbd11687a7106f51790d527cc82e1f80cc /app/contexts | |
| parent | f6bfa095bf3178c94464fa3b5afb706e9a6b778c (diff) | |
| download | gitlab-ce-2a1c5cdf99e943950af7630742299222a591827c.tar.gz | |
Only owner of current namespace can change project namespace
Diffstat (limited to 'app/contexts')
| -rw-r--r-- | app/contexts/project_update_context.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/contexts/project_update_context.rb b/app/contexts/project_update_context.rb index e28d43d0e81..90ced7600ed 100644 --- a/app/contexts/project_update_context.rb +++ b/app/contexts/project_update_context.rb @@ -2,7 +2,7 @@ class ProjectUpdateContext < BaseContext def execute(role = :default) namespace_id = params[:project].delete(:namespace_id) - if namespace_id.present? + if can?(current_user, :change_namespace, project) && namespace_id.present? if namespace_id == Namespace.global_id if project.namespace.present? # Transfer to global namespace from anyone |
