Fix: align POSIX hierarchy contract

This commit is contained in:
MangoPig
2026-06-22 11:13:06 +01:00
parent 07590f1c4f
commit 8a94d83e7e
5 changed files with 154 additions and 24 deletions
+9
View File
@@ -978,6 +978,7 @@ func (service *Service) ensureBootstrapPOSIXSkeleton(
departmentPath,
teamPath,
projectPath,
filepath.Join(projectPath, "children"),
filepath.Join(projectPath, "tree"),
filepath.Join(usersPath, "personals"),
} {
@@ -1041,6 +1042,14 @@ func (service *Service) ensureBootstrapPOSIXSkeleton(
return fmt.Errorf("write project home.json: %w", err)
}
if err := writeJSONFile(filepath.Join(projectPath, "acl.json"), map[string]any{
"version": 1,
"inherits": true,
"rules": []any{},
}); err != nil {
return fmt.Errorf("write project acl.json: %w", err)
}
if err := writeJSONFile(filepath.Join(usersPath, "settings.json"), map[string]any{
"primaryAdminId": admin.ID,
}); err != nil {