Skip to content

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

fix: rbac feature checker (#4610)

boojack69644c04991e
diff --git a/backend/api/v1/acl.go b/backend/api/v1/acl.go
index 53f81f998d..95b93545e2 100644
--- a/backend/api/v1/acl.go
+++ b/backend/api/v1/acl.go
@@ -112,7 +112,7 @@ 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) {
+ if !in.licenseService.IsFeatureEnabled(api.FeatureRBAC) {
user.Role = api.Owner
}
return user, nil