Create a default role on new scope creation (#265)
This commit is contained in:
1 parent
e89e9d1349
commit
bb6b189513
10 files changed
+264
-70
No files matched your search
@@ -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)
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user