Skip to content

Database governance built for humans and agents — controlling changes and access across every major database.

chore: no need to grant projectOwner (#10531)

p0nyc28210220c2b
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.go
index 35dbfb4bb0..99225979ef 100644
--- a/backend/api/v1/acl.go
+++ b/backend/api/v1/acl.go
@@ -177,9 +177,6 @@ func (in *ACLInterceptor) getUser(ctx context.Context) (*store.UserMessage, erro
// If RBAC feature is not enabled, all users are treated as OWNER.
if in.licenseService.IsFeatureEnabled(api.FeatureRBAC) != nil {
user.Role = api.WorkspaceAdmin
- if in.profile.DevelopmentIAM {
- user.Roles = uniq(append(user.Roles, api.ProjectOwner))
- }
user.Roles = uniq(append(user.Roles, api.WorkspaceAdmin))
}
return user, nil
diff --git a/backend/store/principal.go b/backend/store/principal.go
index 93d1cfa1d4..8af692ab69 100644
--- a/backend/store/principal.go
+++ b/backend/store/principal.go
@@ -288,9 +288,6 @@ func (s *Store) CreateUser(ctx context.Context, create *UserMessage, creatorID i
// Grant the member Owner role if there is no existing member.
if firstMember {
roles = []api.Role{api.WorkspaceAdmin}
- if s.profile.DevelopmentIAM {
- roles = append(roles, api.ProjectOwner)
- }
}
roles = uniq(roles)