Commit 7ae851f6422ffeb51bf587e9621b3dc21180221d
1 parent
585eb705
Exists in
master
and in
4 other branches
Fix critical issue with dir permission for namespaces
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
app/models/namespace.rb
@@ -44,7 +44,7 @@ class Namespace < ActiveRecord::Base | @@ -44,7 +44,7 @@ class Namespace < ActiveRecord::Base | ||
44 | 44 | ||
45 | def ensure_dir_exist | 45 | def ensure_dir_exist |
46 | namespace_dir_path = File.join(Gitlab.config.git_base_path, path) | 46 | namespace_dir_path = File.join(Gitlab.config.git_base_path, path) |
47 | - Dir.mkdir(namespace_dir_path) unless File.exists?(namespace_dir_path) | 47 | + Dir.mkdir(namespace_dir_path, 0770) unless File.exists?(namespace_dir_path) |
48 | end | 48 | end |
49 | 49 | ||
50 | def move_dir | 50 | def move_dir |