Commit 7ae851f6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets

Fix critical issue with dir permission for namespaces

parent 585eb705
......@@ -44,7 +44,7 @@ class Namespace < ActiveRecord::Base
def ensure_dir_exist
namespace_dir_path = File.join(Gitlab.config.git_base_path, path)
Dir.mkdir(namespace_dir_path) unless File.exists?(namespace_dir_path)
Dir.mkdir(namespace_dir_path, 0770) unless File.exists?(namespace_dir_path)
end
def move_dir
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment