Create a default role on new scope creation (#265)

This commit is contained in:
Jeff Mitchell authored and GitHub committed 2020-08-13 17:39:48 -04:00
1 parent e89e9d1349
commit bb6b189513
10 files changed
+264 -70

No files matched your search

+1 -1
View File
@@ -457,7 +457,7 @@ func (b *Server) CreateDevDatabase(dialect string) error {
if err != nil {
return fmt.Errorf("error creating new org scope: %w", err)
}
orgScope, err = repo.CreateScope(ctx, orgScope, iam.WithPublicId(b.DefaultOrgId))
orgScope, err = repo.CreateScope(ctx, orgScope, "", iam.WithPublicId(b.DefaultOrgId))
if err != nil {
return fmt.Errorf("error persisting new org scope: %w", err)
}