Database governance built for humans and agents — controlling changes and access across every major database.
Go cicddata-governancedata-maskingdata-securitydatabase-accessdatabase-governancedevopsdevsecopsflywaygitopsliquibasemongodbmysqloraclepostgresqlschema-migrationssecuritysql-clientsqlservertidb
chore: append project owner role if rbac disabled (#10348)
p0ny27929cb4e740
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.goindex d123aaa57c..5c152ee8a4 100644--- a/backend/api/v1/acl.go+++ b/backend/api/v1/acl.go@@ -177,7 +177,9 @@ 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- // TODO(p0ny): append projectOwner, projectQuerier, projectExporter as we will split workspaceAdmin into these roles.+ if in.profile.DevelopmentIAM {+ user.Roles = uniq(append(user.Roles, api.ProjectOwner))+ }user.Roles = uniq(append(user.Roles, api.WorkspaceAdmin))}return user, nil