Skip to content

Commit

Permalink
fix(datastore/etcd): fix grant privileges when using a custom datasto…
Browse files Browse the repository at this point in the history
…reschema (#607)
  • Loading branch information
lbrunOVH authored Oct 23, 2024
1 parent f3c6a7a commit 674923c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/datastore/etcd.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ func (e *EtcdClient) GrantPrivileges(ctx context.Context, user, dbName string) e
permission := etcdclient.PermissionType(authpb.READWRITE)
key := e.buildKey(dbName)

if _, err := e.Client.RoleGrantPermission(ctx, user, key, etcdclient.GetPrefixRangeEnd(key), permission); err != nil {
if _, err := e.Client.RoleGrantPermission(ctx, dbName, key, etcdclient.GetPrefixRangeEnd(key), permission); err != nil {
return errors.NewGrantPrivilegesError(err)
}

Expand Down

0 comments on commit 674923c

Please sign in to comment.