Skip to content
Snippets Groups Projects
Commit 7ae851f6 authored by Dmitriy Zaporozhets's avatar Dmitriy Zaporozhets
Browse files

Fix critical issue with dir permission for namespaces

parent 585eb705
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment